mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-08 12:37:44 +00:00
Ci fix (#22)
* fix replace function of CI tool * fix ruff errors (ignore some parts) * add ruff rule ignore comment
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import yaml
|
||||
from azure.ai.formrecognizer import DocumentAnalysisClient
|
||||
from azure.core.credentials import AzureKeyCredential
|
||||
from rdagent.core.conf import FincoSettings as Config
|
||||
from rdagent.core.prompts import Prompts
|
||||
|
||||
from langchain_core.documents import Document
|
||||
from langchain.document_loaders import PyPDFDirectoryLoader, PyPDFLoader
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_core.documents import Document
|
||||
from rdagent.core.conf import FincoSettings as Config
|
||||
|
||||
|
||||
def load_documents_by_langchain(path: Path) -> list:
|
||||
"""Load documents from the specified path.
|
||||
|
||||
Reference in New Issue
Block a user