Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -124,7 +124,7 @@ client= InferenceClient("Qwen/Qwen2.5-7B-Instruct-1M")
|
|
| 124 |
|
| 125 |
#defining role of AI and user
|
| 126 |
def respond(message,history):
|
| 127 |
-
information = get_top_chunks(message,
|
| 128 |
|
| 129 |
|
| 130 |
messages = [{"role": "assistant", "content": f"You are a friendly chatbot that gives advice to disadvantaged students about their education based on their question. When you give advice, keep in mind the following infromation {information}"}]
|
|
|
|
| 124 |
|
| 125 |
#defining role of AI and user
|
| 126 |
def respond(message,history):
|
| 127 |
+
information = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 128 |
|
| 129 |
|
| 130 |
messages = [{"role": "assistant", "content": f"You are a friendly chatbot that gives advice to disadvantaged students about their education based on their question. When you give advice, keep in mind the following infromation {information}"}]
|