Get all nodes #15291
Unanswered
d3buggerdan
asked this question in
Q&A
Get all nodes
#15291
Replies: 1 comment 13 replies
-
To get all nodes from an # Assuming you have already created an instance of AzureAISearchVectorStore
vector_store = AzureAISearchVectorStore(
search_or_index_client=your_search_client,
id_field_key="id",
chunk_field_key="chunk",
embedding_field_key="embedding",
metadata_string_field_key="metadata",
doc_id_field_key="doc_id",
filterable_metadata_field_keys=None,
index_name="your_index_name",
index_management=IndexManagement.NO_VALIDATION,
embedding_dimensionality=1536
)
# Create a query object
query = VectorStoreQuery(
similarity_top_k=1000 # Adjust the number as needed
)
# Perform the search to get all nodes
result = vector_store.search(query)
# Access the nodes
nodes = result.nodes This code will retrieve all nodes from the Azure AI Search index and store them in the |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@dosu how can i get all nodes from a AzureAiSearchVectorStore?
Beta Was this translation helpful? Give feedback.
All reactions