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

Add default tool memory embedding driver, cleanup vector store, query engine, and tool memory defaults #231

Merged
merged 4 commits into from
Sep 15, 2023

Conversation

collindutter
Copy link
Member

Copy link
Member

@vasinov vasinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only works if the prompt driver is OpenAI. Otherwise, this breaks. Let's not make this change but instead document embedding driver API keys better.

Or add a default embedding driver to structure, so it propagates to the underlying components like memory?

@collindutter collindutter marked this pull request as draft September 15, 2023 16:03
@collindutter collindutter changed the title Use prompt driver api key for default tool memory embeddings Add default tool memory embedding driver Sep 15, 2023
@collindutter collindutter marked this pull request as ready for review September 15, 2023 17:25
vasinov and others added 3 commits September 15, 2023 11:35
- Remove VectorQueryEngine.vector_store_driver default
- Remove TextToolMemory.query_engine default
- Remove TextToolMemory.summary_engine default
- Rename Structure.default_tool_memory_embedding_driver to Structure.embedding_driver
- Remove TextQueryTask.query_engine default
- Update tests
Copy link
Member

@vasinov vasinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to your changes, I cleaned up a bunch of defaults that shouldn't exist anymore. We want to control one happy path at the structure level to avoid dependency injection complexity. If the user wants to something more advanced, they should be able to set underlying dependencies depending on their needs.

We should document this better.

@vasinov vasinov changed the title Add default tool memory embedding driver Add default tool memory embedding driver, cleanup vector store, query engine, and tool memory defaults Sep 15, 2023
@vasinov vasinov merged commit f2eb838 into main Sep 15, 2023
3 checks passed
@vasinov vasinov deleted the embedding-api-key branch September 15, 2023 20:48
@collindutter
Copy link
Member Author

@vasinov what about VectorStoreClient? With these changes, users need to initialize it with: VectorStoreClient -> VectorQueryEngine -> VectorStoreDriver -> EmbeddingDriver.

Should we set a happy path in VectorStoreClient too?

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.

2 participants