Commit Graph

75 Commits

Author SHA1 Message Date
Ruben Lucas
fbc0e74678 Add Reranker model 2025-04-17 12:42:53 +02:00
59ab43d31e Merge pull request 'general_fixes' (#25) from general_fixes into main
Reviewed-on: AI_team/generic-RAG-demo#25
2025-04-15 09:01:24 +02:00
Nielson Janné
79c1450730 Shows PDF to the side with a nice link 2025-04-13 15:27:21 +02:00
Nielson Janné
47f574390e More logging fixes 2025-04-13 15:27:01 +02:00
Nielson Janné
65ec44a73a Fix an import bug 2025-04-13 14:30:09 +02:00
779d6d4ca6 Merge pull request 'Uses a single prompt for both graph's' (#23) from prompt_fix into main
Reviewed-on: AI_team/generic-RAG-demo#23
2025-04-13 14:28:03 +02:00
Nielson Janné
5a15f1bd16 define param explicit 2025-04-13 14:27:38 +02:00
Nielson Janné
939a7044b5 Organize imports 2025-04-13 14:27:38 +02:00
Nielson Janné
7277cd6ff9 Factor out some duplication 2025-04-13 14:27:38 +02:00
Nielson Janné
ec4edf9c92 Improve type hinting 2025-04-13 14:27:38 +02:00
Nielson Janné
92b57224fa Use a single system prompt everywhere 2025-04-13 14:27:02 +02:00
Nielson Janné
b1e8f19f00 Fixes some logging api mistakes 2025-04-11 19:58:11 +02:00
Nielson Janné
fc59aa0d2f Update requirements.txt + uv.lock 2025-04-11 19:57:35 +02:00
a980568e24 Merge pull request 'Small fixes' (#22) from small_fixes into main
Reviewed-on: AI_team/generic-RAG-demo#22
2025-04-11 13:01:51 +02:00
2929ed1e27 Merge pull request 'Added support for (local) huggingface embedding models' (#21) from fix_embedding into main
Reviewed-on: AI_team/generic-RAG-demo#21
2025-04-11 13:01:29 +02:00
Nielson Janné
f965f7bc1b check for key instead of using try/except clause 2025-04-10 15:36:04 +02:00
Nielson Janné
ce88140ee9 Remove unused var 2025-04-10 15:35:26 +02:00
Nielson Janné
58f9d1f6b5 Remove superfluous import 2025-04-10 15:35:15 +02:00
Nielson Janné
1d4e99459e Added support for (local) huggingface embedding models 2025-04-10 15:13:15 +02:00
ab78fdc0c7 Merge pull request 'CondRetGenLangGraph() returns web and pdf sources by levering the stream defintion' (#19) from cond-sources into main
Reviewed-on: AI_team/generic-RAG-demo#19
Reviewed-by: nielsonj <nielson.janne@sogeti.com>
2025-04-09 19:39:58 +02:00
Ruben Lucas
df2afd73cb 🎨 Reset retrieved sources 2025-04-09 16:30:39 +02:00
Ruben Lucas
67ba306d3e 🐛 If check for pdf source because try doesn't fail 2025-04-09 16:06:15 +02:00
Ruben Lucas
ab1235bd28 Create single source aggregation definition 2025-04-09 16:03:35 +02:00
3295bb8992 Find and add found sources 2025-04-09 15:23:54 +02:00
6ad6ac4a34 Merge pull request 'Change RetGenLangGraph to use streaming instead of invoking on the LLM' (#17) from reg_gen_stream into main
Reviewed-on: AI_team/generic-RAG-demo#17
2025-04-09 11:21:13 +02:00
Nielson Janné
9baa7b0ef6 Fix a small bug in report web page source 2025-04-09 11:17:09 +02:00
Nielson Janné
9bb9f0ea22 Make RetGenGrap async for smoother user experience 2025-04-09 11:16:55 +02:00
Nielson Janné
db3d1cfa20 Change RetGenLangGraph to use streaming instead of invoking on the LLM 2025-04-08 23:37:04 +02:00
Nielson Janné
5d86ad6961 Add logging warning when no page number is found 2025-03-28 18:56:01 +01:00
Nielson Janné
f3429a15b1 small refacter in ret_gen.py
- improve readability
- reduce chance for potential mistake in future
2025-03-28 18:19:55 +01:00
Nielson Janné
cd14c8add2 Fix pdf source retrieval information 2025-03-28 18:11:41 +01:00
Nielson Janné
d1e9b3d8cf pretty up source printing in chainlit 2025-03-28 18:11:41 +01:00
Nielson Janné
47c1c1cd6e Add extra logging regarding pdf/web soure parsing 2025-03-28 18:11:41 +01:00
0fe4a628d7 🐛 Check CHAINLIT_STARTERS with default value 2025-03-28 13:47:45 +01:00
cfcaf84f2d 🐛 Make project setup more restrictive Add black settings 2025-03-28 13:47:08 +01:00
Nielson Janné
d37012f780 Make the --pdf-data argument optional 2025-03-26 11:08:54 +01:00
Nielson Janné
506857deeb Factor out processing of responses in functions 2025-03-26 10:34:34 +01:00
Nielson Janné
5258127ae1 Update readme 2025-03-24 11:57:34 +01:00
Nielson Janné
6cf26dabce Fix a argparse bug 2025-03-17 17:48:39 +01:00
Nielson Janné
bb1bf558f7 Add memory in the RetGenGraph 2025-03-17 17:48:30 +01:00
Nielson Janné
ee0c731faf Add support for both lang Graphs 2025-03-17 17:40:54 +01:00
Nielson Janné
f25770e3ce Add a Conditional Retrieve/Generator LangGraph 2025-03-17 16:51:15 +01:00
Nielson Janné
3965ce0fb2 Fixes small bug in RetGenLangGraph 2025-03-17 14:46:16 +01:00
Nielson Janné
2ba3eadec4 Add some doc-strings 2025-03-17 14:25:39 +01:00
Nielson Janné
3fa0e31521 Refactor out Retrieval/Generator LangGraph 2025-03-17 14:15:50 +01:00
Nielson Janné
3412dea813 Bugfix not passing unstructured_pdf argument along 2025-03-17 14:15:15 +01:00
Nielson Janné
f46887b19d Add Ruff as dev dependency 2025-03-17 12:47:36 +01:00
Nielson Janné
674220f442 Extend readme documentation 2025-03-17 12:47:22 +01:00
Nielson Janné
67d681fcc4 Fix --backend flag and description 2025-03-17 12:47:09 +01:00
Nielson Janné
b9d2f348a2 Add option to configure the us of (un)structred pdfs 2025-03-17 12:46:52 +01:00