Skip to content

Commit

Permalink
update embedding strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
darthtrevino committed Oct 25, 2024
1 parent 4ef83a3 commit a020472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphrag/index/operations/embed_text/strategies/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def _execute(
async def embed(chunk: list[str]):
async with semaphore:
chunk_embeddings = await llm(chunk)
result = np.array(chunk_embeddings.output)
result = np.array(chunk_embeddings.output.embeddings)
tick(1)
return result

Expand Down

0 comments on commit a020472

Please sign in to comment.