Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change default bmp #1775

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading