Skip to content

Commit

Permalink
chore(chatbot): update dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Aug 22, 2024
1 parent 8f0c5d5 commit 4271e42
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 62 deletions.
8 changes: 4 additions & 4 deletions chatbot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
from llama_index.llms.azure_openai import AzureOpenAI

st.set_page_config(
page_title="Chat with the PDM docs, powered by LlamaIndex",
page_title="Chat with the PDM docs",
page_icon="📝",
layout="centered",
initial_sidebar_state="auto",
menu_items=None,
)
st.title("Chat with the PDM docs, powered by LlamaIndex 💬🦙")
st.title("Chat with the PDM docs 💬🦙")
st.info(
"PDM - A modern Python package and dependency manager. "
"Check out the full documentation at [PDM docs](https://pdm-project.org).",
Expand All @@ -22,15 +22,15 @@
api_key=st.secrets.get("aoai_key"),
azure_endpoint=st.secrets.get("aoai_endpoint"),
engine="gpt-35-turbo",
api_version="2024-02-01",
api_version="2024-02-15-preview",
temperature=0.5,
system_prompt="You are an expert on PDM and your job is to answer technical questions. "
"Assume that all questions are related to PDM. Keep your answers technical and based on facts - do not hallucinate features.",
)
Settings.embed_model = AzureOpenAIEmbedding(
azure_deployment="embedding",
api_key=st.secrets.get("aoai_key"),
api_version="2024-02-01",
api_version="2023-05-15",
azure_endpoint=st.secrets.get("aoai_endpoint"),
)

Expand Down
Loading

0 comments on commit 4271e42

Please sign in to comment.