Skip to content

Commit

Permalink
Merge pull request #51 from SubstrateLabs/ben-remove-baseurl
Browse files Browse the repository at this point in the history
Remove base_url from embedding/rag examples
  • Loading branch information
0thernet authored Aug 15, 2024
2 parents 68b0f12 + 24626b1 commit 8ec51fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/basic_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from substrate import Substrate, MultiEmbedText, DeleteVectorStore, FindOrCreateVectorStore

substrate = Substrate(api_key=api_key, timeout=60 * 5, base_url="https://kube-dev.substrate.run/ray/stable")
substrate = Substrate(api_key=api_key, timeout=60 * 5)

old_collection = DeleteVectorStore(collection_name="substrate_api_v2", model="jina-v2")

Expand Down
2 changes: 1 addition & 1 deletion examples/basic_rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from substrate import Substrate, QueryVectorStore, FindOrCreateVectorStore, sb

substrate = Substrate(api_key=api_key, timeout=60 * 5, base_url="https://kube-dev.substrate.run/ray/stable")
substrate = Substrate(api_key=api_key, timeout=60 * 5)

prompt_text = input("Enter a prompt: ")

Expand Down

0 comments on commit 8ec51fb

Please sign in to comment.