Skip to content

Commit

Permalink
fix redundant embedding
Browse files Browse the repository at this point in the history
  • Loading branch information
seehi committed Apr 24, 2024
1 parent b8b1a66 commit eb564bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions metagpt/rag/engines/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,7 @@ def _from_nodes(
embed_model = cls._resolve_embed_model(embed_model, retriever_configs)
llm = llm or get_rag_llm()

retriever = get_retriever(
configs=retriever_configs, nodes=nodes, embed_model=embed_model
) # Default VectorStoreIndex(nodes, embed_model).as_retriever
retriever = get_retriever(configs=retriever_configs, nodes=nodes, embed_model=embed_model)
rankers = get_rankers(configs=ranker_configs, llm=llm) # Default []

return cls(
Expand Down

0 comments on commit eb564bb

Please sign in to comment.