Skip to content

Can DocumentSummaryIndex be used with local langchain llm? #9780

Answered by dosubot bot
GeorgeDittmar asked this question in Q&A
Discussion options

You must be logged in to vote

🤖

Hello @GeorgeDittmar! I'm Dosu, a friendly bot here to assist you with your LlamaIndex queries or issues while we wait for a human maintainer to join us. I'm designed to help you solve bugs, answer questions, and guide you on how to become a contributor. Looking forward to our interaction!

Based on the information you've provided and the similar issues I found in the LlamaIndex repository, it seems like the error message about setting the OpenAI API key is likely because the OpenAI LLM is being used somewhere in your pipeline, possibly as a default setting.

To use a local LangChainLLM, you need to instantiate a ServiceContext with the local LLM. If you are still receiving an error about…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GeorgeDittmar
Comment options

Answer selected by GeorgeDittmar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant