File tree Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Expand file tree Collapse file tree 2 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def calculate_total_sales(df):
123
123
"""
124
124
completion_response = llm .invoke (text )
125
125
print (completion_response )
126
- return OllamaLLM , llm , text
126
+ return ( OllamaLLM ,)
127
127
128
128
129
129
@app .cell (hide_code = True )
@@ -133,9 +133,9 @@ def _(mo):
133
133
134
134
135
135
@app .cell
136
- def _ (llm , text ):
137
- for chunk in llm .stream (text ):
138
- print (chunk , end = "" , flush = True )
136
+ def _ ():
137
+ # for chunk in llm.stream(text):
138
+ # print(chunk, end="", flush=True)
139
139
return
140
140
141
141
@@ -273,12 +273,7 @@ def _(mo):
273
273
274
274
@app .cell (hide_code = True )
275
275
def _ (mo ):
276
- mo .md (
277
- r"""
278
- ### Working with Embeddings
279
-
280
- """
281
- )
276
+ mo .md (r"""### Working with Embeddings""" )
282
277
return
283
278
284
279
@@ -369,9 +364,9 @@ def _(PromptTemplate):
369
364
Use the following context to answer the question. If the answer isn't in the context, say so.
370
365
Context:
371
366
{context}
372
-
367
+
373
368
Question: {question}
374
-
369
+
375
370
Answer:
376
371
""" )
377
372
return (rag_prompt ,)
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments