-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Hey,
I just found out about this project today and wanted to try it out as I've been looking for local AI note taking app. I previously tried Blinko but was getting issues when trying to connect it to Ollama.
With open-notebook i'm getting an issue when trying to save a note or search notes using ollama.
This is the error I get when trying to save a note
RuntimeError: API request failed: 500 - {"detail":"Error creating note: Failed to get embeddings: All connection attempts failed"}
File "/app/.venv/lib/python3.12/site-packages/streamlit/runtime/fragment.py", line 245, in wrapped_fragment
result = non_optional_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/streamlit/elements/dialog_decorator.py", line 99, in dialog_content
_ = non_optional_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/pages/stream_app/note.py", line 24, in add_note
notes_service.create_note(
File "/app/api/notes_service.py", line 57, in create_note
note_data = api_client.create_note(
^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/client.py", line 228, in create_note
return self._make_request("POST", "/api/notes", json=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/client.py", line 49, in _make_request
raise RuntimeError(
This is my docker-compose file, along with this my environment file I set google api key and ollama as OLLAMA_API_BASE="http://127.0.0.1:11434"
When I set model and embedding using google everything works fine but when I switch to use ollama thats when things start breaking.
services:
surrealdb:
image: surrealdb/surrealdb:v2
ports:
- "8000:8000"
volumes:
- ./surreal_data/:/mydata
command: start --user root --pass root rocksdb:/mydata/mydatabase.db
pull_policy: always
user: root
open_notebook:
image: lfnovo/open_notebook:latest
ports:
- "8080:8502"
env_file:
- docker.env
depends_on:
- surrealdb
pull_policy: always
volumes:
- ./notebook_data:/app/data
for OLLAMA_API_BASE="http://127.0.0.1:11434" I also tried localhost:11434 but that also didn't work.
has anyone else ran into this issue and let me know if you need more info. Thanks!