

KET RAG
Overview :
KET-RAG (Knowledge-Enhanced Text Retrieval Augmented Generation) is a powerful retrieval-augmented generation framework enhanced with knowledge graph technology. It achieves efficient knowledge retrieval and generation through a multi-granularity indexing framework, such as a knowledge graph skeleton and a text-keyword bipartite graph. This framework significantly improves retrieval and generation quality while reducing indexing costs, making it well-suited for large-scale RAG applications. Developed in Python, KET-RAG supports flexible configuration and extension, catering to the needs of developers and researchers seeking efficient knowledge retrieval and generation.
Target Users :
KET-RAG is designed for developers, researchers, and enterprise application developers who require efficient knowledge retrieval and generation. It enables users to quickly retrieve relevant information from large-scale documents and generate high-quality answers, making it suitable for question answering systems, intelligent customer service, knowledge management, and similar applications.
Use Cases
In question answering systems, KET-RAG can quickly retrieve knowledge base entries and generate accurate answers.
For intelligent customer service scenarios, KET-RAG can retrieve relevant knowledge based on user questions and generate responses.
In knowledge management systems, KET-RAG can help users quickly locate and generate knowledge snippets.
Features
Supports Knowledge Graph Skeleton (SkeletonRAG) to select key text fragments and extract structured knowledge.
Efficiently links keywords to text fragments through a Text-Keyword Bipartite Graph (KeywordRAG).
Combines entity and keyword channels for efficient retrieval and high-quality generation.
Supports dependency installation via Poetry, facilitating environment configuration and management.
Provides flexible indexing and context generation tools suitable for a variety of applications.
How to Use
1. **Install Dependencies:** Use Poetry to install project dependencies.
2. **Initialize Project:** Run the initialization command to set up the project's file structure.
3. **Tune Prompts:** Optimize retrieval performance by adjusting prompts using the `prompt-tune` command.
4. **Build Index:** Create knowledge graph and text indexes by running the indexing command.
5. **Generate Context and Answers:** Use the `create_context.py` and `llm_answer.py` scripts to generate context and answers.
Featured AI Tools

Myreader AI
MyReader is an AI-powered tool that reads books for you. You can upload any book or document (PDF, EPUB), ask questions, and get answers along with the relevant passage for your reference. You can also browse the contents of the uploaded books, view related chapters, and jump to specific pages within the book to continue reading. MyReader helps you efficiently acquire knowledge and allows you to create different contexts, such as philosophy, finance, and healthcare. You can refer to your uploaded books anytime, with a maximum upload limit of 20,000 pages. Please visit our website for pricing details.
Knowledge Management
608.0K

Google NotebookLM
NotebookLM is a personalized AI assistant designed to help users with thinking, summarizing, and brainstorming. Users can create notebooks, add Google Docs, PDFs, or copied text as information sources, and then ask NotebookLM questions to assist with explanation, summarization, and brainstorming. Users can also click on information sources to automatically generate summaries and key themes. NotebookLM's strength lies in its personalized assistance, allowing users to trust the information it provides and build upon it for their work.
Knowledge Management
349.1K