Skip to content

Commit

Permalink
change default bmp
Browse files Browse the repository at this point in the history
  • Loading branch information
emrgnt-cmplxty committed Jan 8, 2025
1 parent dea0f09 commit ca04a00
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Binary file modified py/core/examples/supported_file_types/bmp.bmp
Binary file not shown.
2 changes: 1 addition & 1 deletion py/core/pipes/kg/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ async def extract_kg(
"""

# combine all chunks into a single string
combined_chunks: str = " ".join([chunk.data for chunk in chunks]) # type: ignore
combined_chunks: str = " ".join([chunk.data for chunk in chunks])

messages = await self.database_provider.prompts_handler.get_message_payload(
task_prompt_name=self.database_provider.config.graph_creation_settings.graphrag_relationships_extraction_few_shot,
Expand Down
13 changes: 7 additions & 6 deletions py/tests/integration/test_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,16 @@ def test_rag_stream_query(client):
# Consume a few chunks from the async generator
import asyncio

async def consume_stream():
def consume_stream():
count = 0
async for chunk in resp:
for chunk in resp:
count += 1
if count > 1:
break
return count

count = asyncio.run(consume_stream())
# count = asyncio.run(consume_stream())
count = consume_stream()
assert count > 0, "No chunks received from streamed RAG query"


Expand All @@ -119,15 +120,15 @@ def test_agent_query_stream(client):

import asyncio

async def consume_stream():
def consume_stream():
count = 0
async for chunk in resp:
for chunk in resp:
count += 1
if count > 1:
break
return count

count = asyncio.run(consume_stream())
count = consume_stream() # asyncio.run(consume_stream())
assert count > 0, "No streaming chunks received from agent"


Expand Down

0 comments on commit ca04a00

Please sign in to comment.