You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm simply trying to load a document (CSV) but I would like to use a custom llm and not the openAI llm. Is that possible?
When trying to run:
from langchain.indexes import VectorstoreIndexCreator
from langchain.document_loaders import DataFrameLoader
loader = DataFrameLoader(dataframe, page_content_column="TRANSLATED_COMMENT")
index = VectorstoreIndexCreator().from_loaders([loader])
I get:
Did not find openai_api_key, please add an environment variable OPENAI_API_KEYwhich contains it, or pass openai_api_key as a named parameter.
I understand that the class instantiation goes straight to openAI API and thats why it requires the key. I would like to know if there is a way to use a HF model instead.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm simply trying to load a document (CSV) but I would like to use a custom llm and not the openAI llm. Is that possible?
When trying to run:
I get:
Did not find openai_api_key, please add an environment variable
OPENAI_API_KEYwhich contains it, or pass
openai_api_keyas a named parameter.
I understand that the class instantiation goes straight to openAI API and thats why it requires the key. I would like to know if there is a way to use a HF model instead.
Beta Was this translation helpful? Give feedback.
All reactions