Azcognitive search
AzCognitiveSearchReader #
Bases: BaseReader
General reader for any Azure Cognitive Search index reader.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
service_name
|
str
|
the name of azure cognitive search service. |
required |
search_key
|
str
|
provide azure search access key directly. |
required |
index
|
str
|
index name |
required |
Source code in llama-index-integrations/readers/llama-index-readers-azcognitive-search/llama_index/readers/azcognitive_search/base.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
load_data #
load_data(query: str, content_field: str, filter: Optional[str] = None) -> List[Document]
Read data from azure cognitive search index.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query
|
str
|
search term in Azure Search index |
required |
content_field
|
str
|
field name of the document content. |
required |
filter
|
str
|
Filter expression. For example : 'sourcepage eq 'employee_handbook-3.pdf' and sourcefile eq 'employee_handbook.pdf'' |
None
|
Returns:
Type | Description |
---|---|
List[Document]
|
List[Document]: A list of documents. |
Source code in llama-index-integrations/readers/llama-index-readers-azcognitive-search/llama_index/readers/azcognitive_search/base.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|