-
Notifications
You must be signed in to change notification settings - Fork 15
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
adding MimeNode type #503
base: main
Are you sure you want to change the base?
adding MimeNode type #503
Conversation
… into knowledge_store/mime
method_map = method_map if method_map else {} | ||
other_methods = other_methods if other_methods else [] | ||
|
||
base_methods = ['embed_texts', 'aembed_texts', 'embed_query', 'aembed_query'] |
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.
I don't think we should try to add all of these as methods, it's definitely pretty messy.
I think we should just have embed_mime(self, mime_type: str, content: Union[str, Bytes])
or something like that. Then there is only a single abstract method to use for any mime type and the names can be different, etc.
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.
100% but right now, LangChain doesn't have "embed_mime" :)
|
||
# Step 1: Add the nodes, collecting the tags and new sources / targets. | ||
tag_to_new_sources = {} |
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.
This has changed significantly from the previous implementation. I think it will need to be reworked if we work on adding this right now.
# Conflicts: # libs/knowledge-store/ragstack_knowledge_store/graph_store.py # libs/langchain/ragstack_langchain/graph_store/base.py # libs/langchain/ragstack_langchain/graph_store/cassandra.py
Shall we close this one ? |
No description provided.