Skip to content

How to check number of doc store exists and their corresponding namespace? #16076

Answered by dosubot bot
johnhu33 asked this question in Q&A
Discussion options

You must be logged in to vote

To check the number of document stores that exist and their corresponding namespaces, you can refer to the StorageContext class. The StorageContext class contains the following stores:

  1. Document Store:

    • docstore (BaseDocumentStore)
  2. Index Store:

    • index_store (BaseIndexStore)
  3. Vector Stores:

    • vector_stores (Dict[str, BasePydanticVectorStore])
    • Namespaces for vector stores can be found in the vector_stores dictionary keys.
  4. Graph Store:

    • graph_store (GraphStore)
  5. Property Graph Store:

    • property_graph_store (Optional[PropertyGraphStore])

Based on this, there is one document store (docstore) and multiple vector stores, each with its own namespace. The namespaces for the vector sto…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by johnhu33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant