mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-02 18:07:43 +00:00
factor extraction pipeline ready (#16)
* run the code * update code * remove some redundant code --------- Co-authored-by: xuyang1 <xuyang1@microsoft.com>
This commit is contained in:
@@ -5,18 +5,12 @@ from pathlib import Path
|
||||
import yaml
|
||||
from azure.ai.formrecognizer import DocumentAnalysisClient
|
||||
from azure.core.credentials import AzureKeyCredential
|
||||
from finco.conf import FincoSettings as Config
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from langchain_core.documents import Document
|
||||
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
|
||||
|
||||
with (Path(__file__).parent / "util_prompt.yaml").open(encoding="utf8") as f:
|
||||
UTIL_PROMPT = yaml.safe_load(
|
||||
f,
|
||||
)
|
||||
|
||||
|
||||
def load_documents_by_langchain(path: Path) -> list:
|
||||
"""Load documents from the specified path.
|
||||
|
||||
Reference in New Issue
Block a user