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

feat(py): Local Vector Store Plugin #2379

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kirgrim
Copy link
Contributor

@kirgrim kirgrim commented Mar 19, 2025

Description:

  • added Dev Local Vector Store plugin
  • added define_indexer api to Genkit Registry

Checklist (if applicable):

@github-actions github-actions bot added docs Improvements or additions to documentation feature New feature or request python Python config labels Mar 19, 2025
@pavelgj pavelgj requested a review from ssbushi March 19, 2025 14:47
@kirgrim kirgrim force-pushed the hrymailo/feat/local-vector-store branch from 104aa82 to ab1996f Compare March 19, 2025 15:08
Copy link
Contributor

@ssbushi ssbushi left a 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

@ssbushi
Copy link
Contributor

ssbushi commented Mar 19, 2025

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):
Copy link
Contributor

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.

@pavelgj

@kirgrim kirgrim force-pushed the hrymailo/feat/local-vector-store branch 3 times, most recently from d6a6a60 to 1882c96 Compare March 21, 2025 14:09
@kirgrim kirgrim requested a review from ssbushi March 21, 2025 14:15
@kirgrim kirgrim mentioned this pull request Mar 21, 2025
2 tasks
@kirgrim kirgrim force-pushed the hrymailo/feat/local-vector-store branch 2 times, most recently from fb3414d to 018c584 Compare March 21, 2025 14:18
# Copyright 2025 Google LLC
# SPDX-License-Identifier: Apache-2.0

from typing import Callable
Copy link
Contributor

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.

@kirgrim kirgrim force-pushed the hrymailo/feat/local-vector-store branch from 018c584 to 8a103a9 Compare March 24, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config docs Improvements or additions to documentation feature New feature or request python Python
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

4 participants