Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ def process_files(token, pdf_files, chunk_limit, chunk_separator):
|
|
| 87 |
)
|
| 88 |
|
| 89 |
# Add computed columns to the table for context retrieval and prompt creation
|
| 90 |
-
t['question_context'] = chunks_t.top_k(t.question)
|
| 91 |
t['prompt'] = create_prompt(
|
| 92 |
t.question_context, t.question
|
| 93 |
)
|
|
|
|
| 87 |
)
|
| 88 |
|
| 89 |
# Add computed columns to the table for context retrieval and prompt creation
|
| 90 |
+
t['question_context'] = chunks_t.queries.top_k(t.question)
|
| 91 |
t['prompt'] = create_prompt(
|
| 92 |
t.question_context, t.question
|
| 93 |
)
|