Skip to content

Can't get filtermultidoc demo w/LanceDocChatAgent working without OpenAI API auth attempt... #8

@fat-tire

Description

@fat-tire

Looking at filter-multi-doc.py and trying to use with an all local LLM without any openai involvement...

First I had to change the embed_cfg to not use OpenAIEmbeddings:, so changed to:

# Configs
embed_cfg = SentenceTransformerEmbeddingsConfig()

(oh, also had to install langroid with pip install -U langroid[litellm,hf-embeddings])

This worked, and I got it to load in the wikipedia page and everything. But now something in this line is still trying to authenticate to OPENAI:

   task = LanceRAGTaskCreator.new(agent, interactive=True)

I'm trying to look up the call chain to see what exactly is still depending on OpenAI, but figured maybe I should just ask.

I'm not registering for an OpenAI api key and it seems like most of the demos are relying on it, even the ones I would think woudn't...

Using OpenChat 3.5 fwiw, but the log says:

Starting Agent LancePlanner (1) gpt-4-turbo-preview

Gpt-4 preview? Why? the llm_config seems to be set up right for the local llm, and is referenced correctly in DocChatAgentConfig so I'm not sure why it's going to gpt-4 unless something is hardcoded somewhere (here?)

How should the file be modified to use only local embedders, vectordbs, and whatever-its-doing-when-you-run-the-agents?

Thanks!

PS-- there's a typo: "reqdy" in a few of the examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions