DataBassGit/AgentForge

No embedding_function provided, using default embedding function: SentenceTransformerEmbeddingFunction

thebestx121 opened this issue · 3 comments

help pls:
"Selecting collection: tasks
No embedding_function provided, using default embedding function: SentenceTransformerEmbeddingFunction
Language Model Not Found!
Traceback (most recent call last):
File "C:\Users\p\BigBoogaAGI\main.py", line 34, in
task_list = taskCreationAgent.run_task_creation_agent(objective, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\p\BigBoogaAGI\Agents\task_creation_agent.py", line 37, in run_task_creation_agent
raise ValueError('Language model not found. Please check the language_model_api variable.')
ValueError: Language model not found. Please check the language_model_api variable.
"

myzona commented

Getting same error

@thebestx121 and @myzona I am still learning but what I have found is that error is caused by an if statement in the task_creation_agent python file if you are using the oobabooga api instead of the openai api. Starting at line 25 it says: if language_model_api == 'openai_api':. I solved the error by changing it to: if language_model_api == 'oobabooga_api':

Hi All,

No embedding_function provided, using default embedding function: SentenceTransformerEmbeddingFunction

This line is intended functionality. ChromaDB is notifying that the default embedding function is being selected.

The important line here is "Language Model Not Found!" You need to set the language model in your config.ini file. The only LLM currently supported is OpenAI. You should have this entry in your config file:

library = openai_api

You will also need to make sure that you have your API key and Model ID set in your config file as well.