Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI tag generation fails with ollama #944

Open
1 task done
L0sWach0s opened this issue Jan 28, 2025 · 0 comments
Open
1 task done

AI tag generation fails with ollama #944

L0sWach0s opened this issue Jan 28, 2025 · 0 comments

Comments

@L0sWach0s
Copy link

Describe the Bug

When I try to generate tags, I always get the following error.

hoarder              | 2025-01-28T17:56:10.119Z error: **[inference][137] inference job failed: SqliteError: no such column:** customPrompts.attachedBy
hoarder              | SqliteError: no such column: customPrompts.attachedBy
hoarder              |     at Database.prepare (/app/apps/workers/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
hoarder              |     at BetterSQLiteSession.prepareQuery (/app/apps/workers/node_modules/.pnpm/[email protected][email protected]/node_modules/drizzle-orm/better-sqlite3/session.cjs:42:30)
hoarder              |     at QueryPromise._prepare (/app/apps/workers/node_modules/.pnpm/[email protected][email protected]/node_modules/drizzle-orm/sqlite-core/query-builders/query.cjs:119:81)
hoarder              |     at QueryPromise.executeRaw (/app/apps/workers/node_modules/.pnpm/[email protected][email protected]/node_modules/drizzle-orm/sqlite-core/query-builders/query.cjs:159:17)
hoarder              |     at QueryPromise.execute (/app/apps/workers/node_modules/.pnpm/[email protected][email protected]/node_modules/drizzle-orm/sqlite-core/query-builders/query.cjs:162:17)
hoarder              |     at QueryPromise.then (/app/apps/workers/node_modules/.pnpm/[email protected][email protected]/node_modules/drizzle-orm/query-promise.cjs:44:17)
hoarder              |     at runNextTicks (node:internal/process/task_queues:65:5)
hoarder              |     at listOnTimeout (node:internal/timers:555:9)
hoarder              |     at process.processTimers (node:internal/timers:529:7)

The AI based summary is working fine.

My AI Settings are:
OLLAMA_KEEP_ALIVE=5m
INFERENCE_TEXT_MODEL=llama3.2:3b
INFERENCE_LANG=german
INFERENCE_JOB_TIMEOUT_SEC=300
EMBEDDING_TEXT_MODEL=joanfm/jina-embeddings-v2-base-de
INFERENCE_IMAGE_MODEL=llava-llama3

and I recognized, that the models joanfm/jina-embeddings-v2-base-de ans llama-llama3 were not loaded at anytime.

Steps to Reproduce

  1. Import a Link / Text / picture
  2. look in the log ;)

Expected Behaviour

the tags will be generated

Screenshots or Additional Context

No response

Device Details

Docker container

Exact Hoarder Version

Hoarder v0.21.0, ollama version is 0.5.7

Have you checked the troubleshooting guide?

  • I have checked the troubleshooting guide and I haven't found a solution to my problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant