-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Implement embeddings for use with LLM agents #680
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #680 +/- ##
==========================================
- Coverage 60.82% 60.70% -0.12%
==========================================
Files 100 100
Lines 12402 12445 +43
==========================================
+ Hits 7543 7555 +12
- Misses 4859 4890 +31 ☔ View full report in Codecov by Sentry. |
text = "\n".join([message["content"] for message in messages]) | ||
# TODO: refactor this so it's not subsetting by index | ||
# [(0, 'The creator of this dataset is named Andrew HH', 0.7491879463195801, 'windturbines.parquet')] | ||
result = self.embeddings.query(text, table_name=table_name)[0][1] |
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.
Another TODO: handle ephemeral tables
58b32fd
to
ea7d578
Compare
Uses duckdb instead of chromadb. Currently subsets embeddings by table name. Not sure how to handle ephemeral tables yet.