query expansion

scroll ↓ to Resources

Contents

  • Note
    • [[#Note#Pattern visualization|Pattern visualization]]
    • [[#Note#Use-cases and products|Use-cases and products]]
    • [[#Note#Prompt example|Prompt example]]
  • Resources

Note

  • ask an LLM to generate one or multiple queries based on your initial query; use auto-generated queries for retrieving relevant chunks from vector database
  • The idea is that expanded queries are better suitable for information retrieval than the original human-written request
  • Query expansion can become core component to an AI product like SQL assistant or No-code UI generator
  • Can be done using a zero-shot learning prompt, but if good output query examples are available, these can be added

Pattern visualization

Use-cases and products

  • Multi-language documents in the database
  • SQL assistant: generating standardized query language under the hood (SQL, Cypher)
  • Specific vocabulary, terms, which user might not know
  • Any other specialized info that might help the Assistant set up a better search

Prompt example

Resources


table file.inlinks, file.outlinks from [[]] and !outgoing([[]])  AND -"Changelog"