-
Notifications
You must be signed in to change notification settings - Fork 174
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
feat(py): Local Vector Store Plugin #2379
base: main
Are you sure you want to change the base?
Conversation
104aa82
to
ab1996f
Compare
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.
We decided not to include indexer in python.... @pavelgj
Thanks for working on this... I was half way through the implementation before I saw this PR, maybe I should have been more vigilant in tracking this via an issue.. |
|
||
# User-provided retriever function that queries the datastore | ||
type RetrieverFn[T] = Callable[[Document, T], RetrieverResponse] | ||
|
||
|
||
class CommonRetrieverOptionsSchema(BaseModel): |
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.
We probably don't want this anymore? There was some discussion on how useful these common types are.
py/plugins/dev-local-vector-store/src/genkit/plugins/dev_local_vector_store/constant.py
Outdated
Show resolved
Hide resolved
py/plugins/dev-local-vector-store/src/genkit/plugins/dev_local_vector_store/indexer.py
Outdated
Show resolved
Hide resolved
py/plugins/dev-local-vector-store/src/genkit/plugins/dev_local_vector_store/retriever.py
Outdated
Show resolved
Hide resolved
d6a6a60
to
1882c96
Compare
fb3414d
to
018c584
Compare
# Copyright 2025 Google LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from typing import Callable |
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.
It's better to call it from collections, as it is deprecated in typing.
018c584
to
8a103a9
Compare
Description:
define_indexer
api to Genkit RegistryChecklist (if applicable):