mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-10 05:42:12 +02:00
Fix embeddings integration
This commit is contained in:
parent
ea95effbf2
commit
22ba73e680
6 changed files with 31 additions and 19 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