Info
This is a flaks server managing a set of different vectorstores. It
is a companion application the ERAG module.
Please start the ERAG module to access the vectorstores.
Available Stores
- EbrainsPDFs : Statistics | Chunk View | Test Query
API
Description
This module supplies a Python interface to the vector store API. It wraps each API call in a respective Python function.
Usage
from store_api.cli_cls import VsAPICli
# create instance of the API
api = VsAPICli(address='url_to_api')
# fetch available stores
stores : list[str] = api.fetch_available_stores()
# query a specific store
query = 'query_string'
store_name = 'Judac'
answer : dict= api.query(message: query, store = store_name, score= True)