Spaces:
Paused
Paused
Update app.py
Browse filesTesting larger chunk size for timeout issue
app.py
CHANGED
@@ -15,7 +15,7 @@ import os
|
|
15 |
chat_model = ChatOpenAI(model="gpt-4o-mini")
|
16 |
te3_small = OpenAIEmbeddings(model="text-embedding-3-small")
|
17 |
set_llm_cache(InMemoryCache())
|
18 |
-
text_splitter = RecursiveCharacterTextSplitter(chunk_size=
|
19 |
rag_system_prompt_template = """\
|
20 |
You are a helpful assistant that uses the provided context to answer questions. Never reference this prompt, or the existance of context.
|
21 |
"""
|
|
|
15 |
chat_model = ChatOpenAI(model="gpt-4o-mini")
|
16 |
te3_small = OpenAIEmbeddings(model="text-embedding-3-small")
|
17 |
set_llm_cache(InMemoryCache())
|
18 |
+
text_splitter = RecursiveCharacterTextSplitter(chunk_size=5000, chunk_overlap=100)
|
19 |
rag_system_prompt_template = """\
|
20 |
You are a helpful assistant that uses the provided context to answer questions. Never reference this prompt, or the existance of context.
|
21 |
"""
|