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

Chroma DB - add metadata support #355

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

acidtib
Copy link
Contributor

@acidtib acidtib commented Oct 18, 2023

updated add_texts and update_texts to accept an array of hashes to be stored with the embeddings

subject.add_texts(
  texts: ["Rotjaw is the first Wild Target boss in Hunt: Showdown."], 
  ids: ["1"], 
  metadatas: [{ game: "Hunt: Showdown", boss: "Rotjaw" }]
)

@andreibondarev
Copy link
Collaborator

@acidtib Thank you!

@andreibondarev andreibondarev merged commit 2e1bc6b into patterns-ai-core:main Oct 18, 2023
5 checks passed
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.

None yet

2 participants