mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-09 13:22:10 +02:00
Fix embeddings integration
This commit is contained in:
parent
ea95effbf2
commit
22ba73e680
6 changed files with 31 additions and 19 deletions
|
|
@ -24,7 +24,8 @@ class TestGraphRagStreaming:
|
|||
def mock_embeddings_client(self):
|
||||
"""Mock embeddings client"""
|
||||
client = AsyncMock()
|
||||
client.embed.return_value = [[0.1, 0.2, 0.3, 0.4, 0.5]]
|
||||
# New batch format: [[[vectors_for_text1]]]
|
||||
client.embed.return_value = [[[0.1, 0.2, 0.3, 0.4, 0.5]]]
|
||||
return client
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue