xtrace_sdk.retrievers.parallel_retriever
Classes
This class is a simple retriever that uses hamming distance to find the most similar context data. |
Functions
|
Decodes a single ciphertext using the provided client. |
Module Contents
- xtrace_sdk.retrievers.parallel_retriever.decode_item(homomorphic_client, ciphertext)
Decodes a single ciphertext using the provided client.
- Parameters:
homomorphic_client (Any)
ciphertext (Any)
- Return type:
Any
- class xtrace_sdk.retrievers.parallel_retriever.ParallelRetriever(execution_context, integration)
Bases:
xtrace_sdk.retrievers.base.RetrieverBaseThis class is a simple retriever that uses hamming distance to find the most similar context data.
- Parameters:
RetrieverBase (class) – abstract base class for retrievers
execution_context (xtrace_sdk.utils.execution_context.ExecutionContext)
integration (Type[xtrace_sdk.integrations.base.IntegrationBase])
- execution_context
- integration
- async nn_search_for_ids_bench(query_vector, k=3, **kwargs)
- Parameters:
query_vector (Any)
k (int)
kwargs (Any)
- Return type:
Any
- async nn_search_for_ids(query_vector, k=3, include_scores=False, **kwargs)
Given an encrypted prompt, return the k most similar encrypted contexts.