Skip to content

How to connect the json script obtained from chatgpt as index in Cognitive search #969

@suma-sai-paluri

Description

@suma-sai-paluri

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Hi @pamelafox can you please help me with the solution. I’m implementing a chat system using my company data which are offer documents (each ranging 15-25 pages long) made to different companies. I would like to perform numeric searches, date searches such as “How many offers are made to the company called aaaa in the past five years” or “Provide me the list of all the offers greater than 10000 euros”. I don’t have a specific file which has this kind of data written in it.

Inorder to achieve this i have tried extracting the related elements in the system message : Reply only in JSON format with the following structure: {"amount": ,"company_name": , "date_of_the_offer":, "duration": } for chat gpt 35 turbo and saved the obtained results in the page text which is obtained during the get document text phase in predocs.py. Later created added the above elements in the schema of the search index and made filterable ,searchable etc.
when i tried checking the results of the index in cognitive search site. The text retrieved for the above elements after the search is incorrect. The keys are pointing to the wrong text.

Please provide with any sources that could help me.

Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions