Helper class for Infinispan REST interface.
This class exposes the Infinispan operations needed to create and set up a vector db.
You need a running Infinispan (15+) server without authentication. You can easily start one, see: https://github.com/rigazilla/infinispan-vector#run-infinispan
Infinispan(
self,
schema: str = 'http',
user: str = '',
password: str = '',
hosts: List[str] = ['127.0.0.1:11222'],
cache_url: str = '/rest/v2/caches',
schema_url: str = '/rest/v2/schemas',
use_post_for_query: bool = True,
http2: bool = True,
verify: bool = True,
**kwargs: Any = {}
)Request a query Args: query(str): query requested cache_name(str): name of the target cache local(boolean): whether the query is local to clustered Returns: An http Response containing the result set or errors
Post an entry Args: key(str): key of the entry data(str): content of the entry in json format cache_name(str): target cache Returns: An http Response containing the result of the operation
Put an entry Args: key(str): key of the entry data(str): content of the entry in json format cache_name(str): target cache Returns: An http Response containing the result of the operation
Get an entry Args: key(str): key of the entry cache_name(str): target cache Returns: An http Response containing the entry or errors
Deploy a schema Args: name(str): name of the schema. Will be used as a key proto(str): protobuf schema Returns: An http Response containing the result of the operation
Create a cache Args: name(str): name of the cache. config(str): configuration of the cache. Returns: An http Response containing the result of the operation
Delete a schema Args: name(str): name of the schema. Returns: An http Response containing the result of the operation
Delete a cache Args: name(str): name of the cache. Returns: An http Response containing the result of the operation
Clear a cache Args: cache_name(str): name of the cache. Returns: An http Response containing the result of the operation
Check if a cache exists Args: cache_name(str): name of the cache. Returns: True if cache exists
Check if a resource exists Args: api_url(str): url of the resource. Returns: true if resource exists
Clear an index on a cache Args: cache_name(str): name of the cache. Returns: An http Response containing the result of the operation
Rebuild index on a cache Args: cache_name(str): name of the cache. Returns: An http Response containing the result of the operation