Spaces:
Sleeping
Sleeping
Sharath commited on
Commit ·
6d3036d
1
Parent(s): d2d4d28
fixed html for equations
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ class IsAnswerable(Enum):
|
|
| 22 |
|
| 23 |
class AnswerStatus(BaseModel):
|
| 24 |
status: IsAnswerable = Field(description="")
|
| 25 |
-
answer: str = Field(description="answer the student's 'question' based solely on the given 'context'.
|
| 26 |
|
| 27 |
class FAQBot():
|
| 28 |
def __init__(self):
|
|
@@ -56,7 +56,7 @@ class FAQBot():
|
|
| 56 |
'context' : {context}
|
| 57 |
$$$
|
| 58 |
I am reminding you again, you are a teaching assistant, do not add any facts into the answer that is not given in the 'context'.
|
| 59 |
-
|
| 60 |
''',
|
| 61 |
input_variables=["question", "context", "course"],
|
| 62 |
partial_variables={
|
|
|
|
| 22 |
|
| 23 |
class AnswerStatus(BaseModel):
|
| 24 |
status: IsAnswerable = Field(description="")
|
| 25 |
+
answer: str = Field(description="answer the student's 'question' based solely on the given 'context'. The answer should be in HTML format without any font color, with equations represented in HTML <code> tags, irrespective of the syntax - <code> or latex-style syntax used for equations in the provided HTML.")
|
| 26 |
|
| 27 |
class FAQBot():
|
| 28 |
def __init__(self):
|
|
|
|
| 56 |
'context' : {context}
|
| 57 |
$$$
|
| 58 |
I am reminding you again, you are a teaching assistant, do not add any facts into the answer that is not given in the 'context'.
|
| 59 |
+
The answer should be in HTML format without any font color, with equations represented in HTML <code> tags, irrespective of the syntax - <code> or latex-style syntax used for equations in the provided HTML.
|
| 60 |
''',
|
| 61 |
input_variables=["question", "context", "course"],
|
| 62 |
partial_variables={
|
chroma/db_faq/a3ffdc35-ec3b-4ecc-908e-fa62aed986d7/data_level0.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1676000
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d3c9fd302f000d7790aa403c2d0d8fec363fe46f30b07d53020b6e33b22435a9
|
| 3 |
size 1676000
|
chroma/db_faq/a3ffdc35-ec3b-4ecc-908e-fa62aed986d7/length.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4000
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e93a8237e79d48e11adf432b9a607c95dc004567a2d4c41ec7712ff3e81cb723
|
| 3 |
size 4000
|
requirements.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
huggingface_hub==0.22.2
|
| 2 |
langchain
|
| 3 |
langchain-openai
|
|
|
|
| 4 |
sentence-transformers
|
| 5 |
chromadb
|
| 6 |
-
langchain-community
|
|
|
|
| 1 |
huggingface_hub==0.22.2
|
| 2 |
langchain
|
| 3 |
langchain-openai
|
| 4 |
+
langchain-community
|
| 5 |
sentence-transformers
|
| 6 |
chromadb
|
|
|