Files
NexQuant/rdagent/scenarios/kaggle/knowledge_management
Xu Yang 768229427d feat: use unified pickle cacher & move llm config into a isolated config (#424)
* simplify RDAgent conf

* add unified cacher(untested)

* fix small bugs

* fix a bug

* fix a small bug in runner

* use hash_key = None to skip cache

* fix CI

* in factor execution, ignore cache when raise exception

* add file locker to avoid mp calling

* fix CI

* use function __module__ name as folder in cache
2024-10-14 17:34:09 +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.