Context-Aware Reasoning Application

Reasoning application using a large language model with retrieval-augmented generation. The app, a GPT-4 question and answer system, demonstrates text generation use cases on web, PDF, and YouTube data produced after LLM knowledge cutoff.

  • Submit the sample prompts below and set "Retrieval-Augmented Generation" to "Off". The LLM without RAG does not know the answers.
  • Submit the sample prompts below and set "Retrieval-Augmented Generation" to "LangChain" or "LlamaIndex". The LLM with RAG knows the answers.
Gradio UI using the OpenAI SDK and MongoDB Atlas Vector Search. Speech-to-text via whisper-1 model, text embedding via ada-002 model, and text generation via gpt-4 model. Implementation via LangChain and LlamaIndex. Evaluation via LangSmith and Weights & Biases.
Retrieval-Augmented Generation
Examples
OpenAI API Key Prompt Retrieval-Augmented Generation