Commit Graph

86 Commits

Author SHA1 Message Date
74dd3b6947 🎨 Add .env only for API keys 2025-04-18 11:42:40 +02:00
Ruben Lucas
26b374cf41 Add back .env package 2025-04-17 13:59:09 +02:00
Ruben Lucas
6b4dfa13b6 📝 Add separate project env setup section 2025-04-17 13:47:36 +02:00
Ruben Lucas
adcaceab8a 🎨 Fix import order 2025-04-17 13:16:41 +02:00
Ruben Lucas
9935d9e8d3 Change config file location using argument parser 2025-04-17 13:06:27 +02:00
Ruben Lucas
a58ef2f365 🎨 Use project root instead of relative path 2025-04-17 08:32:38 +02:00
Ruben Lucas
770f341c1f 🎨 Cleanup model init Add huggingface chat model 2025-04-16 16:06:58 +02:00
Ruben Lucas
572a278a7d 📝 Update readme with new config file 2025-04-16 11:12:29 +02:00
Ruben Lucas
f933ee0ccf Add config.yaml example file 2025-04-16 11:11:56 +02:00
Ruben Lucas
498b06bb3b Remove dotenv dependency 2025-04-16 11:07:30 +02:00
Ruben Lucas
9777c2ff74 🚚 Rename everything to google vertex 2025-04-16 11:06:56 +02:00
Ruben Lucas
996f3bf7a2 Yaml parser using Pydantic classes 2025-04-15 16:22:55 +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