Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SirBeaverB/NLP-2025

Repository files navigation

NLP-2025

Homework repo!

In a new environment, after installing requirements, run chunk_json_articles.py, build_index.py, add openai API key, then run query_kg_rag.py for random questions and run_query.pyfor test.

Need to deploy Qwen2.5-7B-Insturct locally.


crawler.py: 爬取语料

scripts/chunk_json_articles.py: 语料切块

scripts/build_index.py: build embedding

scripts/extract_triples_mrebel.py: 抽取三元组

sripts/build_kg: 构建知识图谱

scripts/query_kg_rag.py: 交互式提问

scripts/run_query: 测试

About

homework repo!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages