You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
scripts/prepdocs.sh1 --category ExampleCategory
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 11
azd version?
run azd version and copy paste here.
azd version 1.10.4
Versions
Mention any other details that might be useful
I want to know how to categorize the data if I have three type types of documents.
I understand that adding an extra tag of --category will enable me to do that.
Lets say there HR, Finance.
How do I add in under the data folder
data/HR/file1.pdf
data/HR/file2.pdf
and
data/Finance/file1.pdf
data/Finance/file2.pdf
I will run
scripts/prepdocs.ps1 --category HR
It will do the steps and ingest the data into the Vector index in AI Search and add the category to the metadata fields.
But the scripts keeps running and enter the next folder on its own. Since there is a folder switch does it automatically take in the next category ?
Or
Should I interuppt the previous script after all documents are done.
And run
scripts/prepdocs.ps1 --category Finance
And then it starts the ingestion process again.
Please guide me into understanding what is the ideal way.
Thanks! We'll be in touch soon.
The text was updated successfully, but these errors were encountered:
@mrisahoo1 - To categorize your documents for indexing, you can run the ingestion script for each category separately as you already figured out, or you can modify the .\scripts\prepdocs.ps1 script as follows for your needs:
This script iterates over each subdirectory in the data directory and processes the files within it, passing the folder name as the category. Note that folder names (which in this case become category names) should not include spaces, as category names are not allowed to have any.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
scripts/prepdocs.sh1 --category ExampleCategory
Any log messages given by the failure
Expected/desired behavior
OS and Version?
azd version?
Versions
Mention any other details that might be useful
I want to know how to categorize the data if I have three type types of documents.
I understand that adding an extra tag of --category will enable me to do that.
Lets say there HR, Finance.
How do I add in under the data folder
data/HR/file1.pdf
data/HR/file2.pdf
and
data/Finance/file1.pdf
data/Finance/file2.pdf
I will run
scripts/prepdocs.ps1 --category HR
It will do the steps and ingest the data into the Vector index in AI Search and add the category to the metadata fields.
But the scripts keeps running and enter the next folder on its own. Since there is a folder switch does it automatically take in the next category ?
Or
Should I interuppt the previous script after all documents are done.
And run
scripts/prepdocs.ps1 --category Finance
And then it starts the ingestion process again.
Please guide me into understanding what is the ideal way.
The text was updated successfully, but these errors were encountered: