-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
api: firestoreIssues related to the googleapis/langchain-google-firestore-python API.Issues related to the googleapis/langchain-google-firestore-python API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
Thanks for stopping by to let us know something could be better!
PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.
Please run down the following list and make sure you've tried the usual "quick fixes":
- Search the issues already opened: https://github.com/googleapis/langchain-google-firestore-python/issues
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
If you are still having issues, please be sure to include as much information as possible:
Environment details
- OS type and version: MacOS
- Python version: python 3.12
- pip version: 24.0
langchain-google-firestoreversion: langchain-google-firestore 0.3.0
Steps to reproduce
- Install langchain-google-firestore 0.3.0 and run the code below
Code example
from langchain_core.documents import Document
from langchain_google_firestore import FirestoreVectorStore
from langchain_google_vertexai import VertexAIEmbeddings
embeddings = VertexAIEmbeddings(model_name="textembedding-gecko@latest")
# Load data
data = ["blue and yellow makes green", "red and orange makes yellow", "white and black makes grey"]
docs = [Document(page_content=d) for d in data]
vector_store = FirestoreVectorStore.from_documents(
collection="colors",
documents=docs,
embedding=embeddings,
)
vector_store.similarity_search_with_score("green") # this raises NotImplementErrorStack trace
Traceback (most recent call last):
File "/demo/vector_store_demo/main.py", line 21, in <module>
vector_store.similarity_search_with_score("green")
File "/demo/.venv/lib/python3.12/site-packages/langchain_core/vectorstores/base.py", line 679, in similarity_search_with_score
raise NotImplementedError
NotImplementedError
Metadata
Metadata
Assignees
Labels
api: firestoreIssues related to the googleapis/langchain-google-firestore-python API.Issues related to the googleapis/langchain-google-firestore-python API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.