Files
NexQuant/rdagent/scenarios/kaggle/knowledge_management
WinstonLiyt 59cdf946a7 fix: fix some bugs in rag (#399)
* fix some bugs in rag

* fix a bug in costeer
2024-09-30 02:38:33 +08:00
..
2024-09-27 00:17:28 +08:00
2024-09-30 02:38:33 +08:00

Usage

This folder implements a knowledge base using RAG based on Kaggle competitions. It allows you to store Kaggle competition experiences into the knowledge base, as well as store experimental experiences from RD-Agent.

  1. First, generate a knowledge base (in JSON format) by running the main function in extract_knowledge.py.
  2. Then, create a vector base in vector_base.py and save it.
  3. Finally, add the field KG_RAG_PATH="xxx.pkl" (the path to the saved vector base) in your .env file.