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 an opportunity to choose a model in vector store #2104

Open
niallrox opened this issue Jan 22, 2025 · 0 comments
Open

Add an opportunity to choose a model in vector store #2104

niallrox opened this issue Jan 22, 2025 · 0 comments

Comments

@niallrox
Copy link

Expected Behavior

	void add(List<Document> documents, String model);
	@Nullable
	List<Document> similaritySearch(SearchRequest request, String model);

or

	void add(List<Document> documents, EmbeddingOptions options);
	@Nullable
	List<Document> similaritySearch(SearchRequest request, EmbeddingOptions options);

Current Behavior
Currently there is no opportunity to send requests providing different models. But in chatClient it is possible.

Context
Currently I use a weird decorator in order to support different models for different clients, which includes a lot of boilerplate code to make it compatible with my specific vector store. I've seen some issues about redesigning of the vector store to separate logic of calling embedding model and saving documents. Are there some plans to do it this way? Would be lovely.. Thanks in advance

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

No branches or pull requests

1 participant