Skip to content

Examples not working with Ollama #19

Closed
@dbonattoj

Description

@dbonattoj

When I run the example provided:
wdoc --model="ollama/qwen3:8b"
--query_eval_model="ollama/qwen3:8b"
--embed_model="ollama/bge-m3"
--task summarize --path https://situational-awareness.ai/

It fails in two ways:

  1. it says that the embed_model should be openai, sentencetransformers or huggingface

AssertionError: Backend of embeddings must be either openai, sentencetransformers or huggingface

  1. if I replace the embedded model by --embed_model="sentencetransformers/all-MiniLM-L6-v2"
    It fails asking for my OPENAI_API_KEY

Exception: No environment variable named OPENAI_API_KEY found

I would like to use it completely with ollama.

Also the documentation is not clear about saving.
Suppose you have a big folder of pdfs, you process them, you can save them as an embedding and then ask the model questions by using the same embedding at another time, is that correct?
What happens if I want to increase the number of documents ?

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions