tests
Browse files
__pycache__/app02-chatRag.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/app02-chatRag.cpython-310.pyc and b/__pycache__/app02-chatRag.cpython-310.pyc differ
|
|
|
app02-chatRag.py
CHANGED
|
@@ -61,10 +61,8 @@ def pipeLog(x):
|
|
| 61 |
def rag_query(question: str, history: list[list[str]]):
|
| 62 |
if len(history)==0:
|
| 63 |
chain = (
|
| 64 |
-
|
| 65 |
-
| { "context": vectorstore.as_retriever(kwargs={"k":5}), "question": RunnablePassthrough() }
|
| 66 |
| PROMPT_NH
|
| 67 |
-
| pipeLog
|
| 68 |
| model
|
| 69 |
)
|
| 70 |
response = chain.invoke(question)
|
|
|
|
| 61 |
def rag_query(question: str, history: list[list[str]]):
|
| 62 |
if len(history)==0:
|
| 63 |
chain = (
|
| 64 |
+
{ "context": vectorstore.as_retriever(kwargs={"k":5}), "question": RunnablePassthrough() }
|
|
|
|
| 65 |
| PROMPT_NH
|
|
|
|
| 66 |
| model
|
| 67 |
)
|
| 68 |
response = chain.invoke(question)
|