Skip to content

Commit

Permalink
Update with user defined embed functionality from ollama
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAiSingularity authored Aug 14, 2024
1 parent 7487893 commit 4c25f02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphrag/llm/openai/openai_embeddings_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ async def _execute_llm(
}
embedding_list = []
for inp in input:
embedding = ollama.embeddings(model="nomic-embed-text", prompt=inp)
embedding = ollama.embeddings(model=self._configuration.model, prompt=inp)
embedding_list.append(embedding["embedding"])
return embedding_list
return embedding_list

0 comments on commit 4c25f02

Please sign in to comment.