Database / Weaviate Vector database Interview questions
What is generative search (RAG) in Weaviate?
Generative search combines Weaviate's retrieval capability with a connected large language model in a single query: Weaviate first retrieves relevant objects (via vector, keyword, or hybrid search), then automatically passes those results to a configured generative module, which produces a natural-language response grounded in that retrieved context.
response = collection.generate.near_text( query="explain the return policy", single_prompt="Summarize this in plain language: {policy_text}", limit=3 )
This directly supports retrieval-augmented generation (RAG) workflows without an application needing to separately orchestrate a retrieval step and a generation step against two different systems; Weaviate handles both within one call, using a generative module (like generative-openai or generative-cohere) configured on the collection, similar in spirit to how a vectorizer module is configured for embeddings.
More Related questions...