Find answers from the community

Updated 2 months ago

Query

At a glance

The post discusses the use of a query engine and an embed model in an information retrieval system. A community member asks whether the query engine also needs the embed model. In the comments, another community member responds that yes, the query engine needs to embed the queries.

index = load_or_create_index(storage_context=storage_context, embed_model=embed_model, documents=documents)
query_engine = index.as_query_engine(
verbose=True,
)
response = query_engine.query("What is so funnny?")

does the query engine as well needs the embed model ?
L
1 comment
Yes, it needs to embed the queries
Add a reply
Sign up and join the conversation on Discord