Find answers from the community

Updated 9 months ago

GitHub - aurelio-labs/semantic-router: S...

At a glance

The community members are discussing the routing mechanism used by the LlamaIndex library. The original poster wonders if LlamaIndex uses a semantic router or still relies on LLM generations for tool-use decisions, noting that semantic routers are faster.

The comments reveal that LlamaIndex has an embedding-based router, but some community members express concerns about the reliability and configuration complexity of embedding-based routing. They suggest that using an LLM for routing may be more generalizable, though slower.

The community members also discuss the similarities and differences between the LlamaIndex router and the semantic router mentioned in the original post, noting that they both use embeddings and may have similar performance characteristics.

There is no explicitly marked answer in the comments, but the discussion provides insights into the routing mechanisms used by LlamaIndex and the trade-offs between different approaches.

Useful resources
Hi Everyone, Does llama index use semantic router to route queries or it still uses LLM generations to make tool-use decisions, semantic router is lot faster i guess, wondering if llama index has integration to it
https://github.com/aurelio-labs/semantic-router
L
l
8 comments
No integration with semantic router, but we do have a router based on embeddings
imo embedding based routing is always going to be less reliable and more time consuming to configure
semantic router also uses embeddings so there's no difference be llama index router and semantic router in terms of performance ?
Its the same idea, so the performance will be similar yes. Semantic router lets you give multiple examples though, while the llama index router uses embeddings based on a single description
what's the best routing if not embeddings
Probably using an LLM to route. Slower, but more generlizable (assuming you have a decent LLM to use)
OpenAI function calling use LLM to do the routing ?
Which router in llama index use embedding and which use LLM routing
Add a reply
Sign up and join the conversation on Discord