修改脚本参数
编辑 create_rag_file.py 中的 main() 函数,将 faq_file_path 更改为您的文件路径:
async def main() -> None:
faq_file_path = SCRIPT_DIR / "your_custom_file.txt"
collection_name = "your_custom_collection"
await initialize_rag(
faq_file_path=faq_file_path,
collection_name=collection_name,
)