refactor(app.py): update argument name in get_embeddings method
Co-authored-by: aider (ollama/qwen2.5-coder:7b) <aider@aider.chat>
This commit is contained in:
parent
2705b5219d
commit
6b51335f43
2
app.py
2
app.py
|
|
@ -55,7 +55,7 @@ async def connect_to_qdrant():
|
||||||
async def get_embeddings(text):
|
async def get_embeddings(text):
|
||||||
import ollama
|
import ollama
|
||||||
client = ollama.Client(os.getenv('OLLAMA_API_BASE', 'http://192.168.1.243:11434'))
|
client = ollama.Client(os.getenv('OLLAMA_API_BASE', 'http://192.168.1.243:11434'))
|
||||||
response = client.embed(model='nomic-embed-text', text=text)
|
response = client.embed(model='nomic-embed-text', input=text)
|
||||||
return response['embedding']
|
return response['embedding']
|
||||||
|
|
||||||
@cl.on_chat_start
|
@cl.on_chat_start
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue