脑供血不足吃什么食物好| 正月初二是什么星座的| 荆芥不能和什么一起吃| 大拇指疼痛什么原因引起的| 杏仁有什么营养| 上天是什么意思| 吃饭时头晕是什么原因| k是什么单位| 肚子硬硬的是什么原因| 什么加什么等于红色| 金银花不能和什么一起吃| 双相是什么| 副师长是什么级别| 为什么会拉血| 6月20日是什么日子| elisa是什么检测方法| 尿急尿痛吃什么药| 水泡长什么样| 白炽灯属于什么光源| 什么是法西斯主义| 宝宝缺钙吃什么补得快| 大臂疼痛怎么什么原因| 结婚前一天晚上的宴会叫什么| 大脑缺氧有什么症状| 胚胎生化是什么意思| 冒菜为什么叫冒菜| 鲁肃是一个什么样的人| 纵容是什么意思| 孕妇前三个月吃什么对胎儿好| 第二磨牙什么时候长| 肉瘤是什么| 含服是什么意思| 火象是什么意思| 成吉思汗什么意思| 从容不迫是什么意思| 孕反一般什么时候开始| pd是什么金属| 做梦流产了是什么意思| 小腿麻木是什么原因引起的| 脱肛是什么症状| 每天喝豆浆有什么好处| 投影是什么意思| 木灵念什么| 怀孕养猫对胎儿有什么影响| 38度吃什么药| 7月7日是什么星座| 玫瑰花泡水有什么功效| 茼蒿和什么相克| pcr是什么意思| 胆固醇高挂什么科| 胃难受吃什么药| 守是什么生肖| 吃什么升血压| 头小脸小适合什么发型| ih医学上是什么意思| 高血压是什么引起的| 抽血生化是查什么| 马路上的菱形标志是什么意思| 烟酰胺有什么作用| 美容美体是干什么的| otc是什么药| 肠道感染是什么原因引起的| 碳酸饮料喝多了有什么危害| 胸部ct平扫能检查出什么| 什么是领导| 做扩胸运动有什么好处| 头晕吃什么药| 舌头发白吃什么药| 什么屁股摸不得| 颈椎吃什么药| 恺字五行属什么| 每天半夜两三点醒是什么原因| 什么盐好| 如愿以偿是什么意思| 寒颤是什么意思| 河南人喜欢吃什么菜| 什么是什么的眼睛| 血小板低有什么危险| 日本料理都有什么菜| 大惊小怪是什么意思| 支气管挂什么科| 皮肤过敏用什么药| 中筋面粉是什么粉| 香港为什么不用人民币| 胸膜炎有什么症状| 阴虚火旺吃什么中成药| 什么是行政处罚| ye是什么意思| 土豆是什么科| 优生优育检查什么项目| 香港说什么语言| 煮红枣为什么有白色的漂浮物| 咽后壁淋巴滤泡增生吃什么药| 羊鞭是什么部位| 甲亢吃什么好的更快| 大拇指脱皮是什么原因| 变态反应是什么意思| 炀是什么意思| 老年人经常头晕是什么原因造成的| 组织部副部长是什么级别| 上曼月乐环后要注意什么| 一物降一物前面一句是什么| 不为良相便为良医是什么意思| 凤尾鱼为什么突然就死| 梦见大蛇是什么预兆| 过氧化氢弱阳性什么意思| 六月初四是什么星座| 颈部疼痛挂什么科| 喝盐水有什么作用和功效| hp医学上是什么意思| 浪人是什么意思| 精是什么意思| 3t是什么意思| 右肺上叶钙化灶是什么意思| 什么是息肉| 清晨醒来口苦是什么原因| lee是什么牌子| 发蜡和发泥有什么区别| 产后检查挂什么科| 老年人脚肿是什么原因| 分分钟都妙不可言是什么歌| 甲状腺过氧化物酶抗体高说明什么问题| 能级是什么意思| 交是什么结构的字| 五官立体是什么意思| 梦见死去的亲人是什么意思| xpe是什么材料| 女性胃火旺吃什么药| 什么是导管| 催经吃什么药| 一什么木屋| 瓜蒌根为什么叫天花粉| 露营需要准备什么东西| 朗朗原名叫什么| 飞蚊症是什么症状| 真露兑什么好喝| 药物过敏用什么药| 什么军官可以随身配枪| 你在说什么用英语怎么说| 大姨妈发黑是什么原因| 什么多么什么造句| 故意不接电话说明什么| 梦见把蛇打死了是什么意思| 皮炎用什么药| 总是低烧是什么原因造成的| 工厂体检一般检查什么| 什么是深海鱼| 乌龟浮水是什么原因| 三文鱼为什么可以生吃| 帝王是什么意思| 烫伤用什么药好| 米白色是什么颜色| 子宫内膜6mm意味着什么| 尼古丁是什么| 冠心病吃什么水果| 什么蔬菜吸脂减肥| 梦见一群羊是什么意思| 总是感觉有尿意是什么原因| 洗耳恭听什么意思| pcl是什么材料| 行长是什么级别| 提炼是什么意思| 搭桥是什么意思| 什么水果含维生素c最多| 牙刷什么样的刷毛最好| 农历七月初七俗称什么| 椰子和椰青有什么区别| 尿素氮偏高是什么意思| 骨结核是什么病| 马代表什么数字| 什么叫自然拼读| 精油有什么作用| roger是什么意思| 什么是桥本氏甲状腺炎| 五月十四号是什么情人节| 眼睛干涩发痒用什么药| 偶发室性早搏是什么意思| 将军是什么级别| 财神爷供奉什么供品| 黑玫瑰代表什么| cfa是什么证书| 生蚝不能和什么一起吃| 高血压吃什么降的快| 肝胆相照是什么生肖| 什么的表达| 疤痕修复用什么药膏好| 性生活是什么感觉| 空气炸锅能做什么| 洗纹身去医院挂什么科| 小孩不吃饭是什么原因| 特需号是什么意思| 9月28号是什么星座| 什么叫智慧| 鸡汤放什么调料| 想要孩子需要做什么检查| 头发长得慢是什么原因| 前列腺肥大是什么意思| 看见蜈蚣有什么预兆| 屈原为什么投江| 104岁属什么生肖| 无是什么意思| 人乳头瘤病毒阴性是什么意思| 6月18是什么日子| 鸡血藤手镯有什么功效| 慢性非萎缩性胃炎吃什么药| 食物中毒呕吐吃什么药| 酸菜鱼用什么鱼做好吃| 屁股上长痘痘是什么原因| 打歌是什么意思| 盆腔ct能检查出什么病| 为什么今年有两个六月| 做水煮鱼用什么鱼最好| 地龙是什么| 为什么要文化大革命| 红薯什么季节成熟| 女人纵欲过度会有什么症状| 微博会员有什么功能| 什么牛奶最有营养| 淋巴是什么东西| 为什么会长荨麻疹| 维生素B3叫什么名字| 蚝油是什么原料做的| b类火灾是指什么| 梦见盗墓是什么意思| 毛拉是什么意思| 胸疼是什么原因引起的| 1938年属什么生肖| 送表的寓意是什么| 肚胀是什么原因| 身上没长什么就是干痒| 3岁小孩不会说话是什么原因| 甲状腺桥本是什么意思| 心脏传导阻滞是什么意思| 多囊卵巢综合症是什么| 为什么总是放屁很频繁| 阴囊长白毛是什么原因| 清明吃什么| 什么病不能吃芒果| 胆囊是什么| 经常放臭屁是什么原因| 羊水污染对宝宝有什么影响| 多潘立酮片是什么药| 食品级pp材质是什么| 人红是非多什么意思| 为什么会阑尾炎| 什么药治便秘| 什么生肖怕老婆| 茶毫是什么| 山穷水尽的尽是什么意思| 恶对什么| 头皮挂什么科| 大放厥词是什么意思| 吃槟榔有什么危害| 格斗和散打有什么区别| 腺癌是什么癌| 狂野是什么意思| 复试是什么意思| 无锡有什么好玩的| 呆呆的笑是什么笑| 风湿关节炎用什么药| 9月17日是什么星座| 梦见买猪肉是什么预兆| 做梦梦到掉牙齿是什么意思| 1997年7月1日属什么生肖| 百度
Skip to content

This repository hosts the code to launch a streamlit Q&A app that locally uses LLMs in a RAG-Reranker workflow

License

Notifications You must be signed in to change notification settings

jd-coderepos/rag-reranker-QA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

?

History

20 Commits
?
?
?
?
?
?
?
?

Repository files navigation

?? RAG with Cross-Encoders Re-ranking Demo Application

This is a demo project showcasing a Large Language Model (LLM) integrated with Retrieval-Augmented Generation (RAG). The project demonstrates how to utilize LLMs for advanced document retrieval and text generation tasks.

Demo

Watch the Video

Requirements

  • Python >= 3.10
  • SQLite >= 3.35
  • Ollama

Setting Up Locally

To set up this project on your local machine, follow these steps:

1. Install Python and SQLite

Make sure you have Python 3.10 or greater installed. You can download Python from the official Python website. Additionally, ensure you have SQLite version 3.35 or higher. SQLite is typically pre-installed with Python, but you can check your version by running:

sqlite3 --version

2. Install Dependencies

Make sure you have installed all these dependencies.

pip install ollama chromadb sentence-transformers streamlit pymupdf langchain-community
ollama pull llama3.2:3b
ollama pull nomic-embed-text

3. Run the Application

Run this application using the following command:

ollama run llama3.2
streamlit run app.py

????? Demo the App

We have provided three example review papers in the papers folder to help you explore the application's capabilities.

Step 1: Upload Paper 1

  • Paper Title: "Ecological restoration in Brazilian biomes: Identifying advances and gaps"
  • Sample Question:
    • "What were the advances identified regarding the ecological restoration in Brazilian biomes in this paper?"
  • What to Expect:
    • View the response generated by the application.
    • Check the "See retrieved documents" section to understand how the retrieval component functioned.
    • Examine the "See most relevant document IDs" section to see how the reranker prioritized the retrieved content.

Step 2: Upload Paper 2

  • Paper Title: "Seed germination traits can contribute better to plant community ecology"
  • Important: The system should now have indexed both Paper 1 and Paper 2.
  • Sample Question:
    • "What methods were used in Paper 1?"
  • Objective:
    • Test whether the reranker can correctly select the relevant content chunks from Paper 1.
  • What to Expect:
    • Review the answer provided by the application.
    • Check the "See retrieved documents" section to analyze retrieval.
    • Look at the "See most relevant document IDs" section to verify the reranker's performance. Here it should have selected only the chunks corresponding to paper 1.

Step 3: Ask a Generic Question

  • Sample Question:
    • "What methods were reported in the paper?"
  • Expected Behavior:
    • If multiple papers are uploaded and the query lacks specificity, the application should not return a response.

Step 4: Ask a Question from Paper 2

  • Sample Question:
    • "Do seed germination traits contribute better to plant community ecology?"
  • What to Expect:
    • Review the application's response.
    • Check the retrieval insights in "See retrieved documents."
    • Analyze the re-ranking behavior in "See most relevant document IDs."

By following these steps, you can evaluate how well the application handles document retrieval, reranking, and response generation based on your queries.

License

This project is licensed under the MIT License.

You are free to use, modify, and distribute this software in accordance with the terms of the license.

About

This repository hosts the code to launch a streamlit Q&A app that locally uses LLMs in a RAG-Reranker workflow

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

前壁后壁有什么区别 花中四君子是什么 什么球不能踢脑筋急转弯 精子吃了有什么好处 过什么不什么
头晕是什么原因引起 马齿苋有什么功效 什么疾什么快 什么时候锻炼身体最佳时间 头皮起疙瘩是什么原因
什么是小数 为盼是什么意思 经常口臭的人是什么原因引起的 手麻是什么情况 澳大利亚说什么语
淋巴细胞百分比偏低是什么意思 什么动物没有心脏 明目退翳什么意思 wrangler是什么牌子 狸猫换太子是什么意思
鹿沼土是什么土imcecn.com 弊端是什么意思hcv7jop6ns7r.cn 大葱和小葱有什么区别yanzhenzixun.com 世界上最多的动物是什么liaochangning.com 木糖醇是什么hcv8jop0ns3r.cn
你为什么背着我爱别人hcv8jop1ns4r.cn 低压高吃什么药最有效hcv9jop6ns4r.cn 补充微量元素吃什么hcv7jop9ns9r.cn 翡翠属于什么五行hcv8jop8ns1r.cn 卫冕冠军是什么意思yanzhenzixun.com
胃胀吃点什么药hcv9jop7ns2r.cn 头晕冒汗是什么原因hcv9jop2ns5r.cn 尿酸低会引发什么症状hanqikai.com 七零年属什么生肖hcv9jop1ns3r.cn 面料支数是什么意思hcv9jop5ns5r.cn
饱不洗头饿不洗澡是为什么hcv8jop5ns7r.cn 抗hbs阳性是什么意思hcv9jop3ns8r.cn 香水前调中调后调是什么意思hcv8jop2ns1r.cn 阴囊潮湿瘙痒用什么药hcv9jop8ns0r.cn 胆毒是什么原因引起的hcv8jop4ns2r.cn
百度