mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 08:26:21 +02:00
Fix/embeddings integration 2 (#670)
This commit is contained in:
parent
919b760c05
commit
4fa7cc7d7c
7 changed files with 90 additions and 77 deletions
|
|
@ -18,7 +18,7 @@ class TestGraphRagStreamingProtocol:
|
|||
def mock_embeddings_client(self):
|
||||
"""Mock embeddings client"""
|
||||
client = AsyncMock()
|
||||
client.embed.return_value = [[0.1, 0.2, 0.3]]
|
||||
client.embed.return_value = [[[0.1, 0.2, 0.3]]]
|
||||
return client
|
||||
|
||||
@pytest.fixture
|
||||
|
|
@ -197,7 +197,7 @@ class TestDocumentRagStreamingProtocol:
|
|||
def mock_embeddings_client(self):
|
||||
"""Mock embeddings client"""
|
||||
client = AsyncMock()
|
||||
client.embed.return_value = [[0.1, 0.2, 0.3]]
|
||||
client.embed.return_value = [[[0.1, 0.2, 0.3]]]
|
||||
return client
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue