An open API service indexing awesome lists of open source software.

https://github.com/runtime-error786/crag


https://github.com/runtime-error786/crag

huggingface-transformers langchain langgraph llama3

Last synced: 26 days ago
JSON representation

Awesome Lists containing this project

README

          

## Overview

This repository provides a framework for building a custom question-answering agent using Large Language Models (LLMs) and document retrieval techniques. The workflow is designed to retrieve documents from both local embeddings and web searches, grade them for relevance, and generate concise answers based on the filtered documents. The system is built using LangChain, Chroma, HuggingFace, and a custom state-based workflow.

## The agent can handle:

- Local document retrieval from pre-indexed sources using embeddings.
- Web search integration if the retrieved documents are insufficient.
- Grading and filtering of documents based on their relevance to the user's query.
- Generation of short, concise answers based on the most relevant documents.

![output](https://github.com/user-attachments/assets/fcd14266-d869-457f-bdcd-bd51344f95c8)