-
Notifications
You must be signed in to change notification settings - Fork 11
fix configs and settings for chroma for library use #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +0,0 @@ | ||
| # Chroma DB Settings | ||
| CHROMA_HOST='any' | ||
| CHROMA_PORT=any | ||
| ALLOW_RESET=False | ||
|
|
||
| # Documents collection's settings | ||
| COLLECTION_NAME='any' | ||
| COLLECTION_NAMES_FOR_ADVANCE=['any'] | ||
| EMBEDDING_NAME='any' | ||
| EMBEDDING_HOST='any' | ||
| DISTANCE_FN='cosine' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| from doc_loader import WordDocumentLoader | ||
| from directory_loader import RecursiveDirectoryLoader | ||
| from pdf_loader import PDFLoader | ||
| from zip_loader import ZipLoader | ||
| from protollm.raw_data_processing.docs_parsers.loaders.doc_loader import WordDocumentLoader | ||
| from protollm.raw_data_processing.docs_parsers.loaders.directory_loader import RecursiveDirectoryLoader | ||
| from protollm.raw_data_processing.docs_parsers.loaders.pdf_loader import PDFLoader | ||
| from protollm.raw_data_processing.docs_parsers.loaders.zip_loader import ZipLoader |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,13 +4,13 @@ | |
|
|
||
|
|
||
| def _get_omml2mml_transformation() -> etree.XSLT: | ||
| omml2mml_file = Path(Path(__file__).parent, "xsl", "omml2mml", "OMML2MML.XSL") | ||
| omml2mml_file = Path(__file__).parent / "xsl/omml2mml/OMML2MML.XSL" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. А чем такой вариант лучше чем через Path?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. На linux почему-то такой вариант не работал и выдавал лишь относительный путь |
||
| omml2mml = etree.XSLT(etree.parse(omml2mml_file)) | ||
| return omml2mml | ||
|
|
||
|
|
||
| def _get_mml2tex_transformation() -> etree.XSLT: | ||
| mml2tex_file = Path(Path(__file__).parent, "xsl", "mml2tex", "mmltex.xsl") | ||
| mml2tex_file = Path(__file__).parent / "xsl/mml2tex/mmltex.xsl" | ||
| mml2tex = etree.XSLT(etree.parse(mml2tex_file)) | ||
|
|
||
| return mml2tex | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| from chunk_merger import ChunkMerger | ||
| from recursive_splitter import RecursiveSplitter | ||
| from .chunk_merger import ChunkMerger | ||
| from .recursive_splitter import RecursiveSplitter |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А dirname тут критичны, нельзя от корня проекта написать путь (тут и ниже)? Тяжело читается. Да и нужно ли вообще значения по умолчанию с example.docx?