Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cr7258 committed Mar 2, 2025
1 parent 0389d95 commit 3103bfd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
14 changes: 9 additions & 5 deletions plugins/wasm-go/extensions/ai-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,16 @@ description: higress 支持通过集成搜索引擎(Google/Bing/Arxiv/Elastics

## Elasticsearch 特定配置

| 名称 | 数据类型 | 填写要求 | 默认值 | 描述 |
|------|----------|----------|--------|------|
| 名称 | 数据类型 | 填写要求 | 默认值 | 描述 |
|------|----------|----------|--------|-----------------------|
| index | string | 必填 | - | 要搜索的Elasticsearch索引名称 |
| contentField | string | 必填 | - | 要查询的内容字段名称 |
| linkField | string | 必填 | - | 结果链接字段名称 |
| titleField | string | 必填 | - | 结果标题字段名称 |
| contentField | string | 必填 | - | 要查询的内容字段名称 |
| semanticTextField | string | 必填 | - | 要查询的 embedding 字段名称 |
| linkField | string | 必填 | - | 结果链接字段名称 |
| titleField | string | 必填 | - | 结果标题字段名称 |
| username | string | 选填 | - | Elasticsearch 用户名 |
| password | string | 选填 | - | Elasticsearch 密码 |


## 配置示例

Expand Down
15 changes: 9 additions & 6 deletions plugins/wasm-go/extensions/ai-search/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@ It is strongly recommended to enable this feature when using Arxiv or Elasticsea

## Elasticsearch Specific Configuration

| Name | Data Type | Requirement | Default Value | Description |
|------|-----------|-------------|---------------|-------------|
| index | string | Required | - | Elasticsearch index name to search |
| contentField | string | Required | - | Content field name to query |
| linkField | string | Required | - | Result link field name |
| titleField | string | Required | - | Result title field name |
| Name | Data Type | Requirement | Default Value | Description |
|------|-----------|-------------|---------------|------------------------------------|
| index | string | Required | - | Elasticsearch index name to search |
| contentField | string | Required | - | Content field name to query |
| semanticTextField | string | Required | - | Embedding field name to query |
| linkField | string | Required | - | Result link field name |
| titleField | string | Required | - | Result title field name |
| username | string | Optional | - | Elasticsearch username |
| password | string | Optional | - | Elasticsearch password |

## Configuration Examples

Expand Down

0 comments on commit 3103bfd

Please sign in to comment.