Skip to content

Change default embeddings to OpenAI and upgrade ChromaDB - #39

Merged
Maclenn77 merged 5 commits into
mainfrom
development
Jun 14, 2026
Merged

Maclenn77 merged 5 commits into
mainfrom
development

Conversation

@Maclenn77

Copy link
Copy Markdown
Owner

This pull request updates the ChromaDB client integration to consistently use OpenAI embeddings and improves the query results returned by the search functionality. The main changes focus on embedding function configuration and search result quantity.

ChromaDB embedding integration:

  • Enabled and configured the OpenAIEmbeddingFunction with the "text-embedding-3-small" model for use in all ChromaDB collection operations in chroma_client.py. [1] [2]
  • Updated both get_collection and create_collection methods to always pass the embedding function when accessing or creating collections, ensuring consistent embedding usage.

Search functionality improvement:

  • Increased the number of results returned by the query method in the run function of search.py from 3 to 5, providing more comprehensive search output.

@Maclenn77
Maclenn77 merged commit ab5bfa2 into main Jun 14, 2026
4 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.

1 participant