Skip to content
Open
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: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ data/
credentials.env
.azure/
.vscode/
infra/target/
infra/target/
apps/frontend/frontend.zip
apps/backend/backend.zip
92 changes: 46 additions & 46 deletions 01-Load-Data-ACogSearch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -255,52 +255,52 @@
" }\n",
" ]\n",
" },\n",
" {\n",
" \"@odata.type\": \"#Microsoft.Skills.Text.KeyPhraseExtractionSkill\",\n",
" \"context\": \"/document/pages/*\",\n",
" \"maxKeyPhraseCount\": 2,\n",
" \"defaultLanguageCode\": \"en\",\n",
" \"inputs\": [\n",
" {\n",
" \"name\": \"text\", \n",
" \"source\": \"/document/pages/*\"\n",
" }\n",
" ],\n",
" \"outputs\": [\n",
" {\n",
" \"name\": \"keyPhrases\",\n",
" \"targetName\": \"keyPhrases\"\n",
" }\n",
" ]\n",
" },\n",
" {\n",
" \"@odata.type\": \"#Microsoft.Skills.Text.V3.EntityRecognitionSkill\",\n",
" \"context\": \"/document/pages/*\",\n",
" \"categories\": [\"Person\", \"URL\", \"Email\"],\n",
" \"minimumPrecision\": 0.5, \n",
" \"defaultLanguageCode\": \"en\",\n",
" \"inputs\": [\n",
" {\n",
" \"name\": \"text\", \n",
" \"source\":\"/document/pages/*\"\n",
" }\n",
" ],\n",
" \"outputs\": [\n",
" {\n",
" \"name\": \"persons\", \n",
" \"targetName\": \"persons\"\n",
" },\n",
" {\n",
" \"name\": \"urls\", \n",
" \"targetName\": \"urls\"\n",
" },\n",
" {\n",
" \"name\": \"emails\", \n",
" \"targetName\": \"emails\"\n",
" }\n",
" ]\n",
" }\n",
" ],\n",
" # {\n",
" # \"@odata.type\": \"#Microsoft.Skills.Text.KeyPhraseExtractionSkill\",\n",
" # \"context\": \"/document/pages/*\",\n",
" # \"maxKeyPhraseCount\": 2,\n",
" # \"defaultLanguageCode\": \"en\",\n",
" # \"inputs\": [\n",
" # {\n",
" # \"name\": \"text\", \n",
" # \"source\": \"/document/pages/*\"\n",
" # }\n",
" # ],\n",
" # \"outputs\": [\n",
" # {\n",
" # \"name\": \"keyPhrases\",\n",
" # \"targetName\": \"keyPhrases\"\n",
" # }\n",
" # ]\n",
" # },\n",
" # {\n",
" # \"@odata.type\": \"#Microsoft.Skills.Text.V3.EntityRecognitionSkill\",\n",
" # \"context\": \"/document/pages/*\",\n",
" # \"categories\": [\"Person\", \"URL\", \"Email\"],\n",
" # \"minimumPrecision\": 0.5, \n",
" # \"defaultLanguageCode\": \"en\",\n",
" # \"inputs\": [\n",
" # {\n",
" # \"name\": \"text\", \n",
" # \"source\":\"/document/pages/*\"\n",
" # }\n",
" # ],\n",
" # \"outputs\": [\n",
" # {\n",
" # \"name\": \"persons\", \n",
" # \"targetName\": \"persons\"\n",
" # },\n",
" # {\n",
" # \"name\": \"urls\", \n",
" # \"targetName\": \"urls\"\n",
" # },\n",
" # {\n",
" # \"name\": \"emails\", \n",
" # \"targetName\": \"emails\"\n",
" # }\n",
" # ]\n",
" # }\n",
" # ],\n",
" \"cognitiveServices\": {\n",
" \"@odata.type\": \"#Microsoft.Azure.Search.CognitiveServicesByKey\",\n",
" \"description\": os.environ['COG_SERVICES_NAME'],\n",
Expand Down
2 changes: 1 addition & 1 deletion credentials.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ AZURE_OPENAI_API_VERSION="2023-05-15"
BING_SEARCH_URL = "https://api.bing.microsoft.com/v7.0/search"

# Demo Data (edit with your own if you want to use your own data)
BLOB_CONNECTION_STRING="BlobEndpoint=https://datasetsgptsmartsearch.blob.core.windows.net/;QueueEndpoint=https://datasetsgptsmartsearch.queue.core.windows.net/;FileEndpoint=https://datasetsgptsmartsearch.file.core.windows.net/;TableEndpoint=https://datasetsgptsmartsearch.table.core.windows.net/;SharedAccessSignature=sv=2022-11-02&ss=b&srt=sco&sp=rl&se=2026-01-03T02:11:44Z&st=2024-01-02T18:11:44Z&spr=https&sig=ngrEqvqBVaxyuSYqgPVeF%2B9c0fXLs94v3ASgwg7LDBs%3D"
BLOB_CONNECTION_STRING="BlobEndpoint=https://datasetsgptsmartsearch.blob.core.windows.net/;SharedAccessSignature=sv=2022-11-02&ss=b&srt=sco&sp=rl&se=2026-01-03T02:11:44Z&st=2024-01-02T18:11:44Z&spr=https&sig=ngrEqvqBVaxyuSYqgPVeF%2B9c0fXLs94v3ASgwg7LDBs%3D"
BLOB_SAS_TOKEN="?sv=2022-11-02&ss=b&srt=sco&sp=rl&se=2026-01-03T02:11:44Z&st=2024-01-02T18:11:44Z&spr=https&sig=ngrEqvqBVaxyuSYqgPVeF%2B9c0fXLs94v3ASgwg7LDBs%3D"

# Edit with your own azure services values
Expand Down