mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-18 14:58:44 +00:00
remove mixin and test fixes
This commit is contained in:
parent
5bbeb985ca
commit
0e451525e5
9 changed files with 140 additions and 69 deletions
|
|
@ -198,20 +198,3 @@ class BankWithIndex:
|
|||
)
|
||||
query_vector = np.array(embeddings_response.embeddings[0], dtype=np.float32)
|
||||
return await self.index.query(query_vector, k, score_threshold)
|
||||
|
||||
|
||||
class InferenceEmbeddingMixin:
|
||||
inference_api: Api.inference
|
||||
|
||||
def __init__(self, inference_api: Api.inference):
|
||||
self.inference_api = inference_api
|
||||
|
||||
def _create_bank_with_index(
|
||||
self, bank: VectorMemoryBank, index: EmbeddingIndex
|
||||
) -> BankWithIndex:
|
||||
|
||||
return BankWithIndex(
|
||||
bank=bank,
|
||||
index=index,
|
||||
inference_api=self.inference_api,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue