Skip to content

Commit

Permalink
AB#3538: issue: 'https://docs.trychroma.com/embeddings' hyperlink is …
Browse files Browse the repository at this point in the history
…not working. Fix: update with using 'https://docs.trychroma.com/guides/embeddings' (#3539)

Co-authored-by: CellCS <cellcs@m1>
Co-authored-by: Li Jiang <[email protected]>
  • Loading branch information
3 people authored Sep 25, 2024
1 parent 2828289 commit a42ad4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion autogen/agentchat/contrib/retrieve_user_proxy_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def __init__(
vector db. Default is None, SentenceTransformer with the given `embedding_model`
will be used. If you want to use OpenAI, Cohere, HuggingFace or other embedding
functions, you can pass it here,
follow the examples in `https://docs.trychroma.com/embeddings`.
follow the examples in `https://docs.trychroma.com/guides/embeddings`.
- `customized_prompt` (Optional, str) - the customized prompt for the retrieve chat.
Default is None.
- `customized_answer_prefix` (Optional, str) - the customized answer prefix for the
Expand Down
4 changes: 2 additions & 2 deletions autogen/retrieve_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def create_vector_db_from_dir(
embedding_function is not None.
embedding_function (Optional, Callable): the embedding function to use. Default is None, SentenceTransformer with
the given `embedding_model` will be used. If you want to use OpenAI, Cohere, HuggingFace or other embedding
functions, you can pass it here, follow the examples in `https://docs.trychroma.com/embeddings`.
functions, you can pass it here, follow the examples in `https://docs.trychroma.com/guides/embeddings`.
custom_text_split_function (Optional, Callable): a custom function to split a string into a list of strings.
Default is None, will use the default function in `autogen.retrieve_utils.split_text_to_chunks`.
custom_text_types (Optional, List[str]): a list of file types to be processed. Default is TEXT_FORMATS.
Expand Down Expand Up @@ -448,7 +448,7 @@ def query_vector_db(
embedding_function is not None.
embedding_function (Optional, Callable): the embedding function to use. Default is None, SentenceTransformer with
the given `embedding_model` will be used. If you want to use OpenAI, Cohere, HuggingFace or other embedding
functions, you can pass it here, follow the examples in `https://docs.trychroma.com/embeddings`.
functions, you can pass it here, follow the examples in `https://docs.trychroma.com/guides/embeddings`.
Returns:
Expand Down
2 changes: 1 addition & 1 deletion website/blog/2023-10-18-RetrieveChat/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ huggingface_ef = embedding_functions.HuggingFaceEmbeddingFunction(
)
```

More examples can be found [here](https://docs.trychroma.com/embeddings).
More examples can be found [here](https://docs.trychroma.com/guides/embeddings).

### Customizing Text Split Function
Before we can store the documents into a vector database, we need to split the texts into chunks. Although
Expand Down

0 comments on commit a42ad4a

Please sign in to comment.