Skip to content
Snippets Groups Projects
Unverified Commit 27047106 authored by James Briggs's avatar James Briggs Committed by GitHub
Browse files

Merge branch 'main' into luca/multi-routes

parents c438c622 4fe29b1c
Branches
Tags
No related merge requests found
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
Semantic Router is a superfast decision-making layer for your LLMs and agents. Rather than waiting for slow LLM generations to make tool-use decisions, we use the magic of semantic vector space to make those decisions — _routing_ our requests using _semantic_ meaning. Semantic Router is a superfast decision-making layer for your LLMs and agents. Rather than waiting for slow LLM generations to make tool-use decisions, we use the magic of semantic vector space to make those decisions — _routing_ our requests using _semantic_ meaning.
--- ---
## Quickstart ## Quickstart
...@@ -117,6 +116,12 @@ rl("I'm interested in learning about llama 2").name ...@@ -117,6 +116,12 @@ rl("I'm interested in learning about llama 2").name
In this case, no decision could be made as we had no matches — so our route layer returned `None`! In this case, no decision could be made as we had no matches — so our route layer returned `None`!
## Integrations
The _encoders_ of semantic router include easy-to-use integrations with [Cohere](https://github.com/aurelio-labs/semantic-router/blob/main/semantic_router/encoders/cohere.py), [OpenAI](https://github.com/aurelio-labs/semantic-router/blob/main/docs/encoders/openai-embed-3.ipynb), [Hugging Face](https://github.com/aurelio-labs/semantic-router/blob/main/docs/encoders/huggingface.ipynb), [FastEmbed](https://github.com/aurelio-labs/semantic-router/blob/main/docs/encoders/fastembed.ipynb), and [more](https://github.com/aurelio-labs/semantic-router/tree/main/semantic_router/encoders) — we even support [multi-modality](https://github.com/aurelio-labs/semantic-router/blob/main/docs/07-multi-modal.ipynb)!.
Our utterance vector space also integrates with [Pinecone](https://github.com/aurelio-labs/semantic-router/blob/main/docs/indexes/pinecone.ipynb) and [Qdrant](https://github.com/aurelio-labs/semantic-router/blob/main/docs/indexes/qdrant.ipynb)!
--- ---
## 📚 Resources ## 📚 Resources
......
...@@ -68,7 +68,7 @@ class PineconeIndex(BaseIndex): ...@@ -68,7 +68,7 @@ class PineconeIndex(BaseIndex):
api_key = api_key or os.getenv("PINECONE_API_KEY") api_key = api_key or os.getenv("PINECONE_API_KEY")
if api_key is None: if api_key is None:
raise ValueError("Pinecone API key is required.") raise ValueError("Pinecone API key is required.")
return Pinecone(api_key=api_key) return Pinecone(api_key=api_key, source_tag="semantic-router")
def _init_index(self, force_create: bool = False) -> Union[Any, None]: def _init_index(self, force_create: bool = False) -> Union[Any, None]:
index_exists = self.index_name in self.client.list_indexes().names() index_exists = self.index_name in self.client.list_indexes().names()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment