Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: EKR chat output format #508

Merged
merged 2 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions enterprise_knowledge_retriever/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ git clone https://github.com/sambanova/ai-starter-kit.git
The next step is to set up your environment variables to use one of the inference models available from SambaNova. You can obtain a free API key through SambaNova Cloud. Alternatively, if you are a current SambaNova customer, you can deploy your models using SambaStudio.

- **SambaNova Cloud (Option 1)**: Follow the instructions [here](../README.md#use-sambanova-cloud-option-1) to set up your environment variables.
Then, in the [config file](./config.yaml), set the `type` variable in `llm_info` to `"sncloud"` and set the `select_expert` config depending on the model you want to use.
Then, in the [config file](./config.yaml), set the `type` variable in `llm_info` to `"sncloud"` and set the `model` config depending on the model you want to use.

- **SambaStudio (Option 2)**: Follow the instructions [here](../README.md#use-sambastudio-option-2) to set up your endpoint and environment variables.
Then, in the [config file](./config.yaml), set the `type` variable in `llm_info` to `"sambastudio"`, and set the `bundle` and `select_expert` configs if you are using a bundle endpoint.
Then, in the [config file](./config.yaml), set the `type` variable in `llm_info` to `"sambastudio"`, and set the `bundle` and `model` configs if you are using a bundle endpoint.

### Set up the embedding model

Expand Down
3 changes: 2 additions & 1 deletion enterprise_knowledge_retriever/streamlit/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ def handle_userinput(user_question: Optional[str]) -> None:
'ai',
avatar='https://sambanova.ai/hubfs/logotype_sambanova_orange.png',
):
st.write(f'{ans}')
formatted_ans = ans.replace('$', '\$')
st.write(f'{formatted_ans}')
if st.session_state.show_sources:
with st.expander('Sources'):
st.markdown(
Expand Down
Loading