flowchart TD
A[Start] --> B[Load Env file for API key]
B --> C[Parse Arguments: --link, --question, --model]
C --> D[ask_question Function]
D --> E[WebBaseLoader: Load Webpage Content]
E --> F[RecursiveCharacterTextSplitter: Split Documents into Chunks]
F --> G[HuggingFaceEmbeddings: Create Embeddings]
G --> H[Chroma: Create Vector Store from Document Chunks]
H --> I[PromptTemplate: Define Prompt for QA]
I --> J[HuggingFaceEndpoint: Initialize LLM Model]
J --> K[RetrievalQA: Create QA Chain]
K --> L[Invoke QA Chain with Question]
L --> M[Return Answer]
M --> N[Print Answer]
N --> O[End]
-
Notifications
You must be signed in to change notification settings - Fork 0
syash-acog/rag_app
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published