Skip to content

Commit 66b5506

Browse files
authored
Merge branch 'main' into cforce-2065
2 parents 9a385a4 + 009d5e1 commit 66b5506

File tree

13 files changed

+25
-33
lines changed

13 files changed

+25
-33
lines changed

.github/workflows/python-test.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,21 @@ jobs:
2626
matrix:
2727
os: ["ubuntu-20.04", "windows-latest"]
2828
python_version: ["3.9", "3.10", "3.11", "3.12"]
29+
env:
30+
UV_SYSTEM_PYTHON: 1
2931
steps:
3032
- uses: actions/checkout@v4
3133
- name: Setup python
3234
uses: actions/setup-python@v5
3335
with:
3436
python-version: ${{ matrix.python_version }}
3537
architecture: x64
38+
- name: Install uv
39+
uses: astral-sh/setup-uv@v3
40+
with:
41+
enable-cache: true
42+
version: "0.4.20"
43+
cache-dependency-glob: "requirements**.txt"
3644
- name: Setup node
3745
uses: actions/setup-node@v4
3846
with:
@@ -44,8 +52,7 @@ jobs:
4452
npm run build
4553
- name: Install dependencies
4654
run: |
47-
python -m pip install --upgrade pip
48-
pip install -r requirements-dev.txt
55+
uv pip install -r requirements-dev.txt
4956
- name: Lint with ruff
5057
run: ruff check .
5158
- name: Check types with mypy

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
exclude: '^tests/snapshots/'
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.5.0
4+
rev: v5.0.0
55
hooks:
66
- id: check-yaml
77
- id: end-of-file-fixer
88
- id: trailing-whitespace
99
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: v0.1.14
10+
rev: v0.7.2
1111
hooks:
1212
- id: ruff
1313
- repo: https://github.com/psf/black
14-
rev: 24.1.0
14+
rev: 24.10.0
1515
hooks:
1616
- id: black
1717
- repo: https://github.com/pre-commit/mirrors-prettier

.vscode/tasks.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
"tasks": [
44
{
55
"label": "Start App",
6-
"type": "dotenv",
7-
"targetTasks": [
8-
"Start App (Script)"
9-
],
10-
"file": "${input:dotEnvFilePath}"
11-
},
12-
{
13-
"label": "Start App (Script)",
146
"type": "shell",
157
"command": "${workspaceFolder}/app/start.sh",
168
"windows": {
@@ -24,12 +16,5 @@
2416
},
2517
"problemMatcher": []
2618
}
27-
],
28-
"inputs": [
29-
{
30-
"id": "dotEnvFilePath",
31-
"type": "command",
32-
"command": "azure-dev.commands.getDotEnvFilePath"
33-
}
3419
]
3520
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,11 @@ Here are the most common failure scenarios and solutions:
288288
### Resources
289289
290290
- [Additional documentation for this app](docs/README.md)
291-
- [📖 Revolutionize your Enterprise Data with ChatGPT: Next-gen Apps w/ Azure OpenAI and AI Search](https://aka.ms/entgptsearchblog)
291+
- [📖 Revolutionize your Enterprise Data with ChatGPT: Next-gen Apps w/ Azure OpenAI and AI Search](https://techcommunity.microsoft.com/blog/azure-ai-services-blog/revolutionize-your-enterprise-data-with-chatgpt-next-gen-apps-w-azure-openai-and/3762087)
292292
- [📖 Azure AI Search](https://learn.microsoft.com/azure/search/search-what-is-azure-search)
293293
- [📖 Azure OpenAI Service](https://learn.microsoft.com/azure/cognitive-services/openai/overview)
294294
- [📖 Comparing Azure OpenAI and OpenAI](https://learn.microsoft.com/azure/cognitive-services/openai/overview#comparing-azure-openai-and-openai/)
295-
- [📖 Access Control in Generative AI applications with Azure Cognitive Search](https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/access-control-in-generative-ai-applications-with-azure/ba-p/3956408)
295+
- [📖 Access Control in Generative AI applications with Azure AI Search](https://techcommunity.microsoft.com/blog/azure-ai-services-blog/access-control-in-generative-ai-applications-with-azure-ai-search/3956408)
296296
- [📺 Quickly build and deploy OpenAI apps on Azure, infused with your own data](https://www.youtube.com/watch?v=j8i-OM5kwiY)
297297
- [📺 AI Chat App Hack series](https://www.youtube.com/playlist?list=PL5lwDBUC0ag6_dGZst5m3G72ewfwXLcXV)
298298

app/frontend/src/assets/github.svg

Lines changed: 1 addition & 1 deletion
Loading

app/frontend/src/assets/search.svg

Lines changed: 1 addition & 1 deletion
Loading

app/frontend/src/locales/da/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@
134134
"useOidSecurityFilter": "Filtrér søgeresultater baseret på den godkendte brugers OID.",
135135
"useGroupsSecurityFilter": "Filtrér søgeresultater baseret på den godkendte brugers adgangsgrupper."
136136
}
137-
}
137+
}

app/frontend/src/locales/nl/translation.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"minimumSearchScore": "Minimale zoekscore",
8282
"minimumRerankerScore": "Minimale reranker score",
8383
"retrieveCount": "Dit aantal zoekresultaten ophalen:",
84-
"includeCategory": "Categorie opnemen",
84+
"includeCategory": "Categorie opnemen",
8585
"includeCategoryOptions": {
8686
"all": "Alle"
8787
},
@@ -151,4 +151,4 @@
151151
"useOidSecurityFilter": "Filtert zoekresultaten op basis van de OID van de geauthenticeerde gebruiker.",
152152
"useGroupsSecurityFilter": "Filtert zoekresultaten op basis van de groepen van de geauthenticeerde gebruiker."
153153
}
154-
}
154+
}

docs/customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ You can also try changing the ChatCompletion parameters, like temperature, to se
117117

118118
### Improving Azure AI Search results
119119

120-
If the problem is with Azure AI Search (step 2 above), the first step is to check what search parameters you're using. Generally, the best results are found with hybrid search (text + vectors) plus the additional semantic re-ranking step, and that's what we've enabled by default. There may be some domains where that combination isn't optimal, however. Check out this blog post which [evaluates AI search strategies](https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/azure-ai-search-outperforming-vector-search-with-hybrid/ba-p/3929167) for a better understanding of the differences.
120+
If the problem is with Azure AI Search (step 2 above), the first step is to check what search parameters you're using. Generally, the best results are found with hybrid search (text + vectors) plus the additional semantic re-ranking step, and that's what we've enabled by default. There may be some domains where that combination isn't optimal, however. Check out this blog post which [evaluates AI search strategies](https://techcommunity.microsoft.com/blog/azure-ai-services-blog/azure-ai-search-outperforming-vector-search-with-hybrid-retrieval-and-ranking-ca/3929167) for a better understanding of the differences.
121121

122122
#### Configuring parameters in the app
123123

docs/data_ingestion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ If needed, you can modify the chunking algorithm in `scripts/prepdocslib/textspl
5757

5858
To enhance search functionality, categorize data during the ingestion process with the `--category` argument, for example `scripts/prepdocs.ps1 --category ExampleCategoryName`. This argument specifies the category to which the data belongs, enabling you to filter search results based on these categories.
5959

60-
After running the script with the desired category, ensure these categories are added to the 'Include Category' dropdown list. This can be found in the developer settings in [`Settings.tsx`](/app/frontend/src/components/settings/Settings.tsx). The default option for this dropdown is "All". By including specific categories, you can refine your search results more effectively.
60+
After running the script with the desired category, ensure these categories are added to the 'Include Category' dropdown list. This can be found in the developer settings in [`Settings.tsx`](https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/app/frontend/src/components/Settings/Settings.tsx). The default option for this dropdown is "All". By including specific categories, you can refine your search results more effectively.
6161

6262
### Indexing additional documents
6363

@@ -75,7 +75,7 @@ You can also remove individual documents by using the `--remove` flag. Open eith
7575

7676
## Integrated Vectorization
7777

78-
Azure AI Search includes an [integrated vectorization feature](https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/announcing-the-public-preview-of-integrated-vectorization-in/ba-p/3960809#:~:text=Integrated%20vectorization%20is%20a%20new%20feature%20of%20Azure,pull-indexers%2C%20and%20vectorization%20of%20text%20queries%20through%20vectorizers), a cloud-based approach to data ingestion. Integrated vectorization takes care of document format cracking, data extraction, chunking, vectorization, and indexing, all with Azure technologies.
78+
Azure AI Search includes an [integrated vectorization feature](https://techcommunity.microsoft.com/blog/azure-ai-services-blog/announcing-the-public-preview-of-integrated-vectorization-in-azure-ai-search/3960809), a cloud-based approach to data ingestion. Integrated vectorization takes care of document format cracking, data extraction, chunking, vectorization, and indexing, all with Azure technologies.
7979

8080
See [this notebook](https://github.com/Azure/azure-search-vector-samples/blob/main/demo-python/code/integrated-vectorization/azure-search-integrated-vectorization-sample.ipynb) to understand the process of setting up integrated vectorization.
8181
We have integrated that code into our `prepdocs` script, so you can use it without needing to understand the details.

0 commit comments

Comments
 (0)