Update chainlit.md
Browse files- chainlit.md +19 -20
chainlit.md
CHANGED
@@ -1,22 +1,21 @@
|
|
1 |
-
|
2 |
|
3 |
-
This code defines an application using the chainlit framework for setting up a RetrievalQA chain for the Daysoff Assistant.
|
4 |
-
|
5 |
-
## Architecture
|
6 |
-
- FAISS index for FAQ and privacy policy embeddings
|
7 |
-
- RetrievalQA chain
|
8 |
-
- LocalFileStore for caching
|
9 |
-
## Data Pipeline
|
10 |
-
1. CSV loading with LangChain document loaders
|
11 |
-
2. Text chunking using RecursiveCharacterTextSplitter
|
12 |
-
3. OpenAIEmbeddings for vector transformation
|
13 |
-
4. Metadata-retention for improved response control.
|
14 |
-
## Prompt Engineering
|
15 |
-
- System template for RAG context
|
16 |
-
- Human template for query formatting
|
17 |
-
- ChatPromptTemplate for inference
|
18 |
-
## Chainlit Framework
|
19 |
-
- Async message handling
|
20 |
-
- User session management
|
21 |
-
- Interface deployment
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.jpg)
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
+
### Welcome to ๐๐ฎ๐๐๐ผ๐ณ๐ณ ๐๐ฆ๐ต๐ณ๐ช๐ฆ๐ท๐ข๐ญ๐๐ ๐๐๐๐ถ๐๐๐ฎ๐ป๐๐ค
|
5 |
+
|
6 |
+
|
7 |
+
This project defines a Retrieval-Augmented Question Answering (สแดวซแด-แดยน) system using FAISS as vector store. The Assistant is designed to handle frequently asked questions (FAQs) related to `firmahytteordning` and `personvernspolicy` for Daysoff.
|
8 |
+
|
9 |
+
|
10 |
+
**Features:**๐
|
11 |
+
- *semantic search across company policy documents*
|
12 |
+
- *context-aware question answering*
|
13 |
+
- *easy-to-use conversational interface*
|
14 |
+
|
15 |
+
*Stack:*๐ป
|
16 |
+
**Data pipeline:** LangChain document loaders, LocalFileStore
|
17 |
+
**Indexing strategy:** FAISS
|
18 |
+
**QA Chain:** RetrievalQA chain (LangChain)
|
19 |
+
**Embeddings:** OpenAIEmbeddings
|
20 |
+
**Interface:** Chainlit
|
21 |
+
**Deployment platform:** Hugging Face Spaces
|