|
--- |
|
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 |
|
|
|
|
|
|