Saltar al contenido principal

Ejemplos de RAG

Definición

Esta página recopila ejemplos concretos de RAG: Q&A simple, QA de documentos y búsqueda híbrida con código que puedes adaptar.

Each example follows the same RAG flow (index documents, embed query, retrieve, generate) but with different frameworks or options. Use them as starting points and adjust chunking, embeddings, and vector store to your data.

Casos de uso

These examples show how to get from zero to a working RAG pipeline with common frameworks and options.

  • Implementing a minimal Q&A pipeline (por ej. LangChain, LlamaIndex)
  • Document QA with custom chunking and embeddings
  • Hybrid search (dense + keyword) for better recall

Example: minimal RAG with LangChain

See the RAG index for a Python snippet. More examples will be added for LlamaIndex, custom embeddings, and reranking.

Documentación externa

Ver también