File size: 722 Bytes
2e3f267
 
 
 
 
 
 
 
 
 
 
 
c207bc8
 
 
 
 
 
 
 
 
 
 
 
 
 
5668875
b1b7707
44af322
bb131a3
5668875
b1b7707
bb131a3
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: RAG 3
emoji: 💻
colorFrom: yellow
colorTo: indigo
sdk: gradio
sdk_version: 4.31.0
app_file: app.py
pinned: false
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference







RAG:
let user to upload pdf or url istead of using story.txx

let user decide the value of chunk_size and top-k

tell it in the prompt directly how long the story should approximately be.

14.05.2024
reference code:
https://github.com/AIAnytime/Zephyr-7B-beta-RAG-Demo/blob/main/ingest.py
https://python.langchain.com/v0.1/docs/modules/data_connection/document_loaders/pdf/
https://huggingface.co/spaces/cvachet/pdf-chatbot/blob/main/app.py
https://www.youtube.com/watch?v=1FERFfut4Uw