Skip to content

Commit

Permalink
fix synthesis bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dayesouza committed Apr 16, 2024
1 parent 67a974f commit 966ff79
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Intelligence Toolkit
The Intelligence Toolkit is a suite of interactive workflows for creating AI intelligence reports from real-world data sources. The toolkit is designed to help users identify patterns, answers, relationships, and risks within complex datasets, with generative AI ([OpenAI GPT models](https://platform.openai.com/docs/models/)) used to create reports on findings of interest.
The Intelligence Toolkit is a suite of interactive workflows for creating AI intelligence reports from real-world data sources. The toolkit is designed to help users identify patterns, answers, relationships, and risks within complex datasets, with generative AI ([OpenAI models](https://platform.openai.com/docs/models/)) used to create reports on findings of interest.

# Developing

Expand Down Expand Up @@ -31,12 +31,23 @@ Open /venv/bin/activate, add the following lines at the end of the file:
```
# set environment variables
export OPENAI_API_KEY=<OPENAI_API_KEY>
# if Azure OpenAI, include the following information too:
export OPENAI_TYPE=AZURE
export AZURE_OPENAI_VERSION=2023-12-01-preview
export AZURE_OPENAI_ENDPOINT="https://<ENDPOINT>.azure.com/"
```

### Windows:
Open venv/Scripts/Activate.ps1, add the following lines after line 167:
```
$env:OPENAI_API_KEY="<OPENAI_API_KEY>"
# if Azure OpenAI, include the following information too:
$env:OPENAI_TYPE="AZURE"
$env:AZURE_OPENAI_VERSION="2023-12-01-preview"
$env:AZURE_OPENAI_ENDPOINT="https://<ENDPOINT>.openai.azure.com/"
```

### Running
Expand Down
2 changes: 1 addition & 1 deletion app/workflows/data_synthesis/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def create():
st.markdown(f'##### Configure time series chart')
time_options = ['']+list(sdf.columns.values)
time_attribute = st.selectbox('Time attribute', options=time_options, index=time_options.index(chart_individual_configuration['time_attribute']))
series_attributes = st.multiselect('Series attributes', options=list(sdf.columns.values), values=chart_individual_configuration['series_attributes'])
series_attributes = st.multiselect('Series attributes', options=list(sdf.columns.values), default=chart_individual_configuration['series_attributes'])
chart_individual_configuration['time_attribute'] = time_attribute
chart_individual_configuration['series_attributes'] = series_attributes

Expand Down

0 comments on commit 966ff79

Please sign in to comment.