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

Class to facilitate embedding generated documents to ChromaDb #70

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

Conversation

k-nearest-neighbor
Copy link

Simple traversal of the generated directory and adding to a local ChromaDB store.

from src.embeddings import Embeddings
e = Embeddings(debug=True)
e.persist_generated_file_contents()

Output:

embedding: generated/popup.js
embedding: generated/styles.css
embedding: generated/background.js
embedding: generated/popup.html
embedding: generated/shared_dependencies.md
embedding: generated/content_script.js
embedding: generated/manifest.json

persisted embeddings for 7 files.

This diff makes a few design choices though, like the introduction of a source directory.

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.

1 participant