AISearchIndexResource Class
- java.
lang. Object - com.
azure. ai. agents. persistent. models. AISearchIndexResource
- com.
Implements
public final class AISearchIndexResource
implements JsonSerializable<AISearchIndexResource>
A AI Search Index resource.
Constructor Summary
| Constructor | Description |
|---|---|
| AISearchIndexResource() |
Creates an instance of AISearch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
AISearch |
fromJson(JsonReader jsonReader)
Reads an instance of AISearch |
| String |
getFilter()
Get the filter property: filter string for search resource. |
| String |
getIndexAssetId()
Get the index |
| String |
getIndexConnectionId()
Get the index |
| String |
getIndexName()
Get the index |
|
Azure |
getQueryType()
Get the query |
| Integer |
getTopK()
Get the topK property: Number of documents to retrieve from search and present to the model. |
|
AISearch |
setFilter(String filter)
Set the filter property: filter string for search resource. |
|
AISearch |
setIndexAssetId(String indexAssetId)
Set the index |
|
AISearch |
setIndexConnectionId(String indexConnectionId)
Set the index |
|
AISearch |
setIndexName(String indexName)
Set the index |
|
AISearch |
setQueryType(AzureAISearchQueryType queryType)
Set the query |
|
AISearch |
setTopK(Integer topK)
Set the topK property: Number of documents to retrieve from search and present to the model. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
AISearchIndexResource
public AISearchIndexResource()
Creates an instance of AISearchIndexResource class.
Method Details
fromJson
public static AISearchIndexResource fromJson(JsonReader jsonReader)
Reads an instance of AISearchIndexResource from the JsonReader.
Parameters:
Returns:
Throws:
getFilter
public String getFilter()
Get the filter property: filter string for search resource.
Returns:
getIndexAssetId
public String getIndexAssetId()
Get the indexAssetId property: Index asset id for search resource.
Returns:
getIndexConnectionId
public String getIndexConnectionId()
Get the indexConnectionId property: An index connection id in an IndexResource attached to this agent.
Returns:
getIndexName
public String getIndexName()
Get the indexName property: The name of an index in an IndexResource attached to this agent.
Returns:
getQueryType
public AzureAISearchQueryType getQueryType()
Get the queryType property: Type of query in an AIIndexResource attached to this agent.
Returns:
getTopK
public Integer getTopK()
Get the topK property: Number of documents to retrieve from search and present to the model.
Returns:
setFilter
public AISearchIndexResource setFilter(String filter)
Set the filter property: filter string for search resource.
Parameters:
Returns:
setIndexAssetId
public AISearchIndexResource setIndexAssetId(String indexAssetId)
Set the indexAssetId property: Index asset id for search resource.
Parameters:
Returns:
setIndexConnectionId
public AISearchIndexResource setIndexConnectionId(String indexConnectionId)
Set the indexConnectionId property: An index connection id in an IndexResource attached to this agent.
Parameters:
Returns:
setIndexName
public AISearchIndexResource setIndexName(String indexName)
Set the indexName property: The name of an index in an IndexResource attached to this agent.
Parameters:
Returns:
setQueryType
public AISearchIndexResource setQueryType(AzureAISearchQueryType queryType)
Set the queryType property: Type of query in an AIIndexResource attached to this agent.
Parameters:
Returns:
setTopK
public AISearchIndexResource setTopK(Integer topK)
Set the topK property: Number of documents to retrieve from search and present to the model.
Parameters:
Returns: