Skip to content

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