Skip to content

Commit

Permalink
final cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RobRossmiller-TG committed Aug 20, 2024
1 parent a3c6dfb commit 9d286e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions eventual-consistency-service/app/graphrag/graph_rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ async def chunk_docs(
doc_tasks = []
async with asyncio.TaskGroup() as grp:
async for content in docs_chan:
# v_id = content["v_id"]
# txt = content["attributes"]["text"]
# send the document to be embedded
logger.info("chunk writes to extract")
# await embed_chan.put((v_id, txt, "Document"))

task = grp.create_task(
workers.chunk_doc(conn, content, upsert_chan, embed_chan, extract_chan)
)
Expand Down
2 changes: 1 addition & 1 deletion eventual-consistency-service/app/graphrag/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ async def process_community(
summarizer = community_summarizer.CommunitySummarizer(llm)
summary = await summarizer.summarize(comm_id, children)

logger.debug(f"*******>{comm_id}: {children}, {summary}")
logger.debug(f"Community {comm_id}: {children}, {summary}")
await upsert_chan.put(
(
util.upsert_vertex, # func to call
Expand Down

0 comments on commit 9d286e0

Please sign in to comment.