-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Bug]: Streaming updates do not work in spite of stream_update set to True #1286
Comments
I have the same issue. I created my index and endpoint using Google's sample code and modified the code to use "stream_update" DIMENSIONS = 768 # Dimensions output from textembedding-gecko My update logic is from that sample code as well. |
I found a fix for my issue. STREAM_UPDATE is case sensitive. Creating the index this way worked to allow streaming updates
This doc probably needs an update - https://cloud.google.com/vertex-ai/docs/vector-search/create-manage-index#create_index-python_vertex_ai_sdk
Those should be in upper case index_update_method="BATCH_UPDATE", # Options: STREAM_UPDATE, BATCH_UPDATE |
Thanks for the feedback, not sure how it got mixed up in this sample. Created PR googleapis/python-aiplatform#4605 to fix the sample |
I think it's a quick fix to update the sample and the docs to make sure
folks know to use STREAM_UPDATE vs stream_update.
…On Thu, Oct 31, 2024 at 2:22 PM Holt Skinner ***@***.***> wrote:
Thanks for the feedback, not sure how it got mixed up in this sample.
https://github.com/googleapis/python-aiplatform/blob/HEAD/samples/model-builder/vector_search/vector_search_create_index_sample.py
—
Reply to this email directly, view it on GitHub
<#1286 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABCEH3SN2QDOFUB3UGMGDTZ6JYNDAVCNFSM6AAAAABQFJ2NPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJQGU2TAMJUGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Docs have been updated. https://cloud.google.com/vertex-ai/docs/vector-search/create-manage-index#create_index-python_vertex_ai_sdk |
File Name
https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/use-cases/retrieval-augmented-generation/multimodal_rag_langchain.ipynb
What happened?
Error :
FailedPrecondition: 400 StreamUpdate is not enabled on this Index.
Code block :
retriever_multi_vector_img.vectorstore.add_documents(summary_docs)
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: