-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix configs and settings for chroma for library use #55
base: main
Are you sure you want to change the base?
Conversation
@@ -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" |
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.
А чем такой вариант лучше чем через Path?
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.
На linux почему-то такой вариант не работал и выдавал лишь относительный путь
extra='ignore', | ||
) | ||
docs_processing_config: Optional[str] = None | ||
docs_collection_path: str = str(Path(dirname(dirname(__file__))) / 'docs' / 'example.docx') |
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?
protollm/rags/configs/chroma.env
Outdated
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.
этот файл нужен пустой, для чего он?
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.
У меня такой же вопрос возник, потому и удалил. Технически, ChromaSettings грузилось из него, но смысла с учётом этих ниочёмных параметров в этом мало.
No description provided.