Find answers from the community

Updated 3 months ago

Hi all, I am trying to create a custom

Hi all, I am trying to create a custom GPT builder without using OpenAI using the agent_builder in the documentation here
https://docs.llamaindex.ai/en/stable/examples/agent/openai_agent.html

Could anyone guide me with the creation of tool_index without using openai api key. TIA
L
2 comments
A quick way

Plain Text
from llama_index import ServiceContext

service_context = ServiceContext.from_defaults(llm=None, embed_model="local:BAAI/bge-base-en-v1.5")

tool_index = ObjectIndex.from_objects(
    list(tool_dict.values()),
    tool_mapping,
    VectorStoreIndex,
    service_context=service_context
)
That's some quick syntax to download and run embeddings from huggingface

You can see all options for embed_model here https://docs.llamaindex.ai/en/stable/module_guides/models/embeddings.html#list-of-supported-embeddings****
Add a reply
Sign up and join the conversation on Discord