|
594 | 594 | " ],\n", |
595 | 595 | " stream=True,\n", |
596 | 596 | " extra_body={\n", |
597 | | - " \"data_sources\": [{\n", |
598 | | - " \"type\": \"azure_search\",\n" |
599 | | - " \"parameters\": {\n", |
600 | | - " \"filter\": None,\n", |
601 | | - " \"endpoint\": search_endpoint,\n", |
602 | | - " \"index_name\": index_name\n", |
603 | | - " \"semantic_configuration\": \"default\",\n" |
604 | | - " \"authentication\": {\n", |
605 | | - " \"type\": \"api_key\",\n", |
606 | | - " \"key\": index_service_key\n", |
607 | | - " },\n", |
608 | | - " \"query_type\": \"simple\",\n" |
609 | | - " \"in_scope\": True,\n" |
610 | | - " \"role_information\": \"You are an AI assistant that helps people find information.\",\n" |
611 | | - " \"strictness\": 4,\n" |
612 | | - " \"top_n_documents\": 5\n" |
613 | | - " }\n", |
614 | | - " }]\n, |
615 | | - " }])\n, |
| 597 | + " \"data_sources\": [{\n", |
| 598 | + " \"type\": \"azure_search\", \n" |
| 599 | + " \"parameters\": {\n", |
| 600 | + " \"filter\": None, \n", |
| 601 | + " \"endpoint\": search_endpoint, \n", |
| 602 | + " \"index_name\": index_name, \n", |
| 603 | + " \"semantic_configuration\": \"default\", \n" |
| 604 | + " \"authentication\": {\n", |
| 605 | + " \"type\": \"api_key\", \n", |
| 606 | + " \"key\": index_service_key \n", |
| 607 | + " }, \n", |
| 608 | + " \"query_type\": \"simple\", \n", |
| 609 | + " \"in_scope\": True, \n", |
| 610 | + " \"role_information\": \"You are an AI assistant that helps people find information.\", \n", |
| 611 | + " \"strictness\": 4, \n", |
| 612 | + " \"top_n_documents\": 5 \n", |
| 613 | + " } \n", |
| 614 | + " }] \n, |
| 615 | + " }] \n, |
| 616 | + " ) \n, |
616 | 617 | "\n", |
617 | 618 | "for chunk in completion:\n", |
618 | 619 | " if chunk.choices[0].message.content is not None:\n", |
|
0 commit comments