Spaces:
Build error
Build error
Update functions.py
Browse files- functions.py +2 -3
functions.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
-
import openai
|
| 2 |
-
import numpy as np
|
| 3 |
import pandas as pd
|
| 4 |
-
import
|
|
|
|
| 5 |
|
| 6 |
def construct_prompt(query: str, context_embeddings: dict, df: pd.DataFrame) -> tuple[str, str]:
|
| 7 |
"""
|
|
|
|
|
|
|
|
|
|
| 1 |
import pandas as pd
|
| 2 |
+
from openai_api import get_response
|
| 3 |
+
from document_retrieval import select_document_section_by_query_similarity
|
| 4 |
|
| 5 |
def construct_prompt(query: str, context_embeddings: dict, df: pd.DataFrame) -> tuple[str, str]:
|
| 6 |
"""
|