Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

mieslep
Copy link

@mieslep mieslep commented Jun 18, 2024

No description provided.

@mieslep mieslep marked this pull request as ready for review June 20, 2024 15:53
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']
Copy link
Contributor

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.

Copy link
Author

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 = {}
Copy link
Contributor

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.

mieslep added 2 commits June 24, 2024 10:55
# 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
@cbornet
Copy link
Collaborator

cbornet commented Jul 29, 2024

Shall we close this one ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants