Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make it possible to open the citation link refer to the metadata of Azure BLOB storage file #424

Open
k-suminaga opened this issue Dec 1, 2023 · 6 comments
Labels

Comments

@k-suminaga
Copy link

Hello Teams.
I would like to express my utmost respect for the significant contributions made by the participants of this repository.

I've made modifications to our fork repository related to this issue.
I'd appreciate it if you could consider merging these changes into the main repository.

  1. set URL for the file as a metadata in Azure BLOB storage.

image

  1. utilize URL info from metadata for citation link.

image

  1. open url with new tab when click link

image

k-suminaga added a commit to k-suminaga/sample-app-aoai-chatGPT that referenced this issue Dec 1, 2023
@lauramartinazure
Copy link

Hey! I am trying to reproduce this - how did you reference the new 'url' metadata in your Azure AI Studio indexer?

@k-suminaga2
Copy link

@lauramartinazure

how did you reference the new 'url' metadata in your Azure AI Studio indexer?

We added fieldMappings setting.

{
  "@odata.context": "https://a1b2-cs-test-01.search.windows.net/$metadata#indexers/$entity",
  "@odata.etag": "\"0x8DBF202DF18629A\"",
  "name": "c2h1-indexer",
  "description": "",
  "dataSourceName": "c2h1",
  "skillsetName": null,
  "targetIndexName": "c2h1-index",
  "disabled": null,
  "schedule": null,
  "parameters": {
    "batchSize": null,
    "maxFailedItems": 0,
    "maxFailedItemsPerBatch": 0,
    "base64EncodeKeys": null,
    "configuration": {
      "dataToExtract": "contentAndMetadata",
      "parsingMode": "default"
    }
  },
  "fieldMappings": [
    {
      "sourceFieldName": "metadata_storage_path",
      "targetFieldName": "metadata_storage_path",
      "mappingFunction": {
        "name": "base64Encode",
        "parameters": null
      }
    },
+ {
+   "sourceFieldName": "url",
+   "targetFieldName": "url",
+   "mappingFunction": null
+ }
  ],
  "outputFieldMappings": [],
  "cache": null,
  "encryptionKey": null
}

We also added a url field to the corresponding index.

image

Then we searched for related text and the URL was returned.

image

Thank you.

@lauramartinazure
Copy link

@k-suminaga2 did you create your index and indexer directly in Azure Search Service or was this automatically configured through the Azure AI Studio GUI?

Thanks!

@k-suminaga2
Copy link

@lauramartinazure I created index and indexer directly in Azure Search Service.

Thank you.

@Matleo
Copy link

Matleo commented Apr 24, 2024

Ist this post related to the "AZURE_SEARCH_URL_COLUMN" ENV Variable?

Why is it "not currently in use?" Do you plan on making this ENV Variable usable?

image

Screenshot taken from here:
https://github.com/microsoft/sample-app-aoai-chatGPT/blob/main/README.md

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants