Update qa_store.py
Browse files- qa_store.py +4 -0
qa_store.py
CHANGED
|
@@ -24,6 +24,10 @@ NEXT_MANUAL_ID: int = 1
|
|
| 24 |
# Will be set to a torch.Tensor by _build_entry_embeddings() in model_utils.py
|
| 25 |
TEXT_EMBEDDINGS = None
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
def normalize_question(q: str) -> str:
|
| 29 |
"""
|
|
|
|
| 24 |
# Will be set to a torch.Tensor by _build_entry_embeddings() in model_utils.py
|
| 25 |
TEXT_EMBEDDINGS = None
|
| 26 |
|
| 27 |
+
# π Add these for glossary
|
| 28 |
+
GLOSSARY = [] # list of glossary items (dicts)
|
| 29 |
+
GLOSSARY_EMBEDDINGS = None # numpy array of embeddings, same size as GLOSSARY
|
| 30 |
+
|
| 31 |
|
| 32 |
def normalize_question(q: str) -> str:
|
| 33 |
"""
|