Spaces:
Build error
Build error
Update chainlit.md
Browse files- chainlit.md +13 -17
chainlit.md
CHANGED
@@ -1,26 +1,22 @@
|
|
1 |
# Part 2: ๐๐ฎ๐๐๐ผ๐ณ๐ณ ๐๐๐๐ถ๐๐๐ฎ๐ป๐ สแดวซแด-แดยน ๐
|
2 |
|
3 |
This code defines an application using the chainlit framework for setting up a RetrievalQA chain for the Daysoff Assistant.
|
4 |
-
|
5 |
|
6 |
## Architecture
|
7 |
-
- FAISS index for FAQ and privacy policy embeddings
|
8 |
-
- RetrievalQA chain
|
9 |
-
- LocalFileStore for caching
|
10 |
-
|
11 |
## Data Pipeline
|
12 |
-
1. CSV loading with LangChain document loaders
|
13 |
-
2. Text chunking using RecursiveCharacterTextSplitter
|
14 |
-
3. OpenAIEmbeddings for vector transformation
|
15 |
-
4. Metadata-retention for improved response control.
|
16 |
-
|
17 |
## Prompt Engineering
|
18 |
-
- System template for RAG context
|
19 |
-
- Human template for query formatting
|
20 |
-
- ChatPromptTemplate for inference
|
21 |
-
|
22 |
## Chainlit Framework
|
23 |
-
- Async message handling
|
24 |
-
- User session management
|
25 |
-
- Interface deployment
|
26 |
|
|
|
1 |
# Part 2: ๐๐ฎ๐๐๐ผ๐ณ๐ณ ๐๐๐๐ถ๐๐๐ฎ๐ป๐ สแดวซแด-แดยน ๐
|
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 |
|