Spaces:
Runtime error
Runtime error
gkrthk
commited on
Commit
•
eeab813
1
Parent(s):
6ad3acb
fix error
Browse files- app.py +1 -1
- confluence_qa.py +1 -1
- requirements.txt +2 -1
app.py
CHANGED
@@ -61,7 +61,7 @@ with st.sidebar.form(key ='Form1'):
|
|
61 |
st.write("Confluence Space Ingested")
|
62 |
|
63 |
|
64 |
-
st.title("Confluence Q&A
|
65 |
|
66 |
question = st.text_input('Ask a question', "How do I make a space public?")
|
67 |
|
|
|
61 |
st.write("Confluence Space Ingested")
|
62 |
|
63 |
|
64 |
+
st.title("Confluence Q&A")
|
65 |
|
66 |
question = st.text_input('Ask a question', "How do I make a space public?")
|
67 |
|
confluence_qa.py
CHANGED
@@ -28,7 +28,7 @@ class ConfluenceQA:
|
|
28 |
url=confluence_url, username=username, api_key=api_key
|
29 |
)
|
30 |
documents = loader.load(include_attachments=include_attachment, limit=50, space_key=space_key)
|
31 |
-
text_splitter = RecursiveCharacterTextSplitter(chunk_size=
|
32 |
documents = text_splitter.split_documents(documents)
|
33 |
# text_splitter = TokenTextSplitter(chunk_size=1000, chunk_overlap=10) # This the encoding for text-embedding-ada-002
|
34 |
# texts = text_splitter.split_documents(texts)
|
|
|
28 |
url=confluence_url, username=username, api_key=api_key
|
29 |
)
|
30 |
documents = loader.load(include_attachments=include_attachment, limit=50, space_key=space_key)
|
31 |
+
text_splitter = RecursiveCharacterTextSplitter(chunk_size=512, chunk_overlap=150)
|
32 |
documents = text_splitter.split_documents(documents)
|
33 |
# text_splitter = TokenTextSplitter(chunk_size=1000, chunk_overlap=10) # This the encoding for text-embedding-ada-002
|
34 |
# texts = text_splitter.split_documents(texts)
|
requirements.txt
CHANGED
@@ -10,4 +10,5 @@ reportlab
|
|
10 |
Pillow
|
11 |
svglib
|
12 |
tiktoken
|
13 |
-
beautifulsoup4
|
|
|
|
10 |
Pillow
|
11 |
svglib
|
12 |
tiktoken
|
13 |
+
beautifulsoup4
|
14 |
+
rlPyCairo
|