Skip to content

Commit

Permalink
updated doc for running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
mkruse83 committed Oct 12, 2023
1 parent c00a839 commit 5784e89
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
AZURE_SEARCH_SERVICE=
AZURE_SEARCH_INDEX=
AZURE_SEARCH_KEY=
AZURE_SEARCH_SERVICE=cs-document-search
AZURE_SEARCH_INDEX=fulllength
AZURE_SEARCH_KEY=<REPLACE_WITH_SEARCH_KEY>
AZURE_SEARCH_USE_SEMANTIC_SEARCH=False
AZURE_SEARCH_SEMANTIC_SEARCH_CONFIG=default
AZURE_SEARCH_SEMANTIC_SEARCH_CONFIG=semantic
AZURE_SEARCH_INDEX_IS_PRECHUNKED=False
AZURE_SEARCH_TOP_K=5
AZURE_SEARCH_ENABLE_IN_DOMAIN=False
AZURE_SEARCH_CONTENT_COLUMNS=
AZURE_SEARCH_FILENAME_COLUMN=
AZURE_SEARCH_TITLE_COLUMN=
AZURE_SEARCH_URL_COLUMN=
AZURE_SEARCH_CONTENT_COLUMNS=content
AZURE_SEARCH_FILENAME_COLUMN=metadata_storage_name
AZURE_SEARCH_TITLE_COLUMN=metadata_storage_namea
AZURE_SEARCH_URL_COLUMN=metadata_storage_path
AZURE_SEARCH_VECTOR_COLUMNS=
AZURE_SEARCH_QUERY_TYPE=simple
AZURE_SEARCH_QUERY_TYPE=semantic
AZURE_SEARCH_PERMITTED_GROUPS_COLUMN=
AZURE_SEARCH_STRICTNESS=3
AZURE_OPENAI_RESOURCE=
AZURE_OPENAI_MODEL=
AZURE_OPENAI_KEY=
AZURE_OPENAI_RESOURCE=prodyna-openai-research-eu
AZURE_OPENAI_MODEL=GPT35TurboWEU
AZURE_OPENAI_KEY=<REPLACE_WITH_OPENAI_KEY>
AZURE_OPENAI_MODEL_NAME=gpt-35-turbo-16k
AZURE_OPENAI_TEMPERATURE=0
AZURE_OPENAI_TOP_P=1.0
Expand All @@ -26,8 +26,8 @@ AZURE_OPENAI_SYSTEM_MESSAGE=You are an AI assistant that helps people find infor
AZURE_OPENAI_PREVIEW_API_VERSION=2023-06-01-preview
AZURE_OPENAI_STREAM=True
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_EMBEDDING_ENDPOINT=
AZURE_OPENAI_EMBEDDING_KEY=
AZURE_OPENAI_EMBEDDING_ENDPOINT=Embeddings
AZURE_OPENAI_EMBEDDING_KEY=<REPLACE_WITH_OPENAI_KEY>
AZURE_COSMOSDB_ACCOUNT=
AZURE_COSMOSDB_DATABASE=
AZURE_COSMOSDB_CONVERSATIONS_CONTAINER=
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# TLDR run locally
1. copy .env.sample to .env and replace openapi key and search key placeholders
2. Create venv-environment by running: ./scripts/loadenv.sh or ./scripts/loadenv.ps1
3. Build frontend in ./frontend with "npm run watch". This will build the frontend and put the packages in ./static whenever the source changes.
4. Start flask app that serves the frontend:
1. Activate python venv with "./.venv/bin/activate" or "./.venv/Scripts/Activate.ps1"
2. Run the flask app: python -m flask run --port=5000 --host=127.0.0.1 --reload --debug
5. Go to localhost:5000

# [Preview] Sample Chat App with AOAI

This repo contains sample code for a simple chat webapp that integrates with Azure OpenAI. Note: some portions of the app use preview APIs.
Expand Down

0 comments on commit 5784e89

Please sign in to comment.