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

firestore: Add support for vector search in golang cloud firestore client #10219

Open
alexu84 opened this issue May 17, 2024 · 1 comment
Open
Assignees
Labels
api: firestore Issues related to the Firestore API. triage me I really want to be triaged.

Comments

@alexu84
Copy link

alexu84 commented May 17, 2024

Is your feature request related to a problem? Please describe.
Currently, the Golang Cloud Firestore client does not support vector stores or vector searches natively. This feature is essential for various applications, such as recommendation systems and similarity searches. Adding this support would streamline the process and remove the need for additional infrastructure or services to handle vector operations.

Describe the solution you'd like
I would like the Golang Cloud Firestore client to provide native support for vector stores and vector searches. This would include:

  1. API Methods to store and retrieve vectors.
  2. A query method similar to QueryDocuments that allows searching for documents by their vector similarity.
  3. Efficient storage and retrieval mechanisms for vectors to ensure good performance.

Example usage:

// Storing a vector
err := firestoreClient.StoreVector(ctx, documentID, myVector)

// Searching by vector similarity
results, err := firestoreClient.SearchByVector(ctx, queryVector, topN)

Describe alternatives you've considered
One alternative is to use third-party libraries or services that offer vector storage and search capabilities, such as FAISS or Elasticsearch. However, this requires additional maintenance and integration efforts, which could be avoided with native support in the Cloud Firestore client.

Additional context
Vector search capability is becoming increasingly important in various fields, such as machine learning, AI, and data analysis. Providing this feature natively in the Golang Cloud Firestore client would significantly enhance its applicability and ease of use for developers working on such projects.

@alexu84 alexu84 added the triage me I really want to be triaged. label May 17, 2024
@alexu84 alexu84 changed the title Add support for vector search in golang cloud firestore client firestore: Add support for vector search in golang cloud firestore client May 17, 2024
@wjkoh
Copy link

wjkoh commented Jun 2, 2024

+1. https://firebase.google.com/docs/firestore/vector-search seems very promising to me!

@codyoss codyoss added the api: firestore Issues related to the Firestore API. label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the Firestore API. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

4 participants