-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from IdeaLeap/dev
Dev
- Loading branch information
Showing
18 changed files
with
481 additions
and
847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [llm-ops](./llm-ops.md) > [milvusVectorDB](./llm-ops.milvusvectordb.md) > [delete](./llm-ops.milvusvectordb.delete.md) | ||
|
||
## milvusVectorDB.delete() method | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
delete(params: { | ||
expr: string; | ||
}): Promise<import("@zilliz/milvus2-sdk-node").MutationResult>; | ||
``` | ||
## Parameters | ||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| params | { expr: string; } | | | ||
**Returns:** | ||
Promise<import("@zilliz/milvus2-sdk-node").MutationResult> | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [llm-ops](./llm-ops.md) > [milvusVectorDB](./llm-ops.milvusvectordb.md) > [upsert](./llm-ops.milvusvectordb.upsert.md) | ||
|
||
## milvusVectorDB.upsert() method | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
upsert(params: milvusVectorDBUpsertSchema): Promise<import("@zilliz/milvus2-sdk-node").MutationResult>; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| params | [milvusVectorDBUpsertSchema](./llm-ops.milvusvectordbupsertschema.md) | | | ||
|
||
**Returns:** | ||
|
||
Promise<import("@zilliz/milvus2-sdk-node").MutationResult> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [llm-ops](./llm-ops.md) > [milvusVectorDBUpsertSchema](./llm-ops.milvusvectordbupsertschema.md) > [data](./llm-ops.milvusvectordbupsertschema.data.md) | ||
|
||
## milvusVectorDBUpsertSchema.data property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
data?: { | ||
[x: string]: any; | ||
}[]; | ||
``` |
13 changes: 13 additions & 0 deletions
13
docs/api/llm-ops.milvusvectordbupsertschema.fields_data.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [llm-ops](./llm-ops.md) > [milvusVectorDBUpsertSchema](./llm-ops.milvusvectordbupsertschema.md) > [fields\_data](./llm-ops.milvusvectordbupsertschema.fields_data.md) | ||
|
||
## milvusVectorDBUpsertSchema.fields\_data property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
fields_data?: { | ||
[x: string]: any; | ||
}[]; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [llm-ops](./llm-ops.md) > [milvusVectorDBUpsertSchema](./llm-ops.milvusvectordbupsertschema.md) > [hash\_keys](./llm-ops.milvusvectordbupsertschema.hash_keys.md) | ||
|
||
## milvusVectorDBUpsertSchema.hash\_keys property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
hash_keys?: Number[]; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [llm-ops](./llm-ops.md) > [milvusVectorDBUpsertSchema](./llm-ops.milvusvectordbupsertschema.md) | ||
|
||
## milvusVectorDBUpsertSchema interface | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export interface milvusVectorDBUpsertSchema | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Modifiers | Type | Description | | ||
| --- | --- | --- | --- | | ||
| [data?](./llm-ops.milvusvectordbupsertschema.data.md) | | { \[x: string\]: any; }\[\] | _(Optional)_ | | ||
| [fields\_data?](./llm-ops.milvusvectordbupsertschema.fields_data.md) | | { \[x: string\]: any; }\[\] | _(Optional)_ | | ||
| [hash\_keys?](./llm-ops.milvusvectordbupsertschema.hash_keys.md) | | Number\[\] | _(Optional)_ | | ||
| [partition\_name?](./llm-ops.milvusvectordbupsertschema.partition_name.md) | | string | _(Optional)_ | | ||
|
11 changes: 11 additions & 0 deletions
11
docs/api/llm-ops.milvusvectordbupsertschema.partition_name.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [llm-ops](./llm-ops.md) > [milvusVectorDBUpsertSchema](./llm-ops.milvusvectordbupsertschema.md) > [partition\_name](./llm-ops.milvusvectordbupsertschema.partition_name.md) | ||
|
||
## milvusVectorDBUpsertSchema.partition\_name property | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
partition_name?: string; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [llm-ops](./llm-ops.md) > [replaceContentWithSequence](./llm-ops.replacecontentwithsequence.md) | ||
|
||
## replaceContentWithSequence variable | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
replaceContentWithSequence: (text: string) => string | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,32 @@ | ||
import { genMermaid } from "llm-ops"; | ||
|
||
const replaceContentWithSequence = (text: string) => { | ||
let index = 1; | ||
return text.replace( | ||
/(\[).*?(\])|(\().*?(\))|(\{).*?(\})|(\").*?(\")|(\|).*?(\|)/g, | ||
(match, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) => { | ||
if (p1 && p2) { | ||
return `${p1}#${index++}${p2}`; | ||
} | ||
if (p3 && p4) { | ||
return `${p3}#${index++}${p4}`; | ||
} | ||
if (p5 && p6) { | ||
return `${p5}#${index++}${p6}`; | ||
} | ||
if (p7 && p8) { | ||
return `${p7}#${index++}${p8}`; | ||
} | ||
if (p9 && p10) { | ||
return `${p9}#${index++}${p10}`; | ||
} | ||
return match; | ||
}, | ||
); | ||
}; | ||
genMermaid({ | ||
request: | ||
"在对数字化转型的探讨中,技术、策略和人是三大核心要素。技术为数字化转型提供了可能性,允许企业利用先进的工具和平台去优化、创新和扩展其业务范围。而策略则为数字化转型提供了方向,确保企业的技术部署与其长期的商业目标和愿景相一致。最后,人是数字化转型的中心,因为不论有多先进的技术或策略,如果员工和客户不能或不愿适应新的变革,那么转型就不可能成功。因此,在进行数字化转型时,企业必须确保技术的适用性、策略的明晰性和人的参与性,以确保转型的全面性和成功性。", | ||
"这是一个公司介绍的文本,总分布局:VTRON作为一家中国公司成立于1998年,总部位于广东省广州市广州科学城开发区;是专业从事高清晰数字显示系统研发、生产、销售与服务的创新型科技企业,它是全球同行业瞩目的集中信息显示系统产品制造基地,它拥有了全系列产品的国际尖端技术和自主知识产权,它一直保持在同行业技术及产品的领先优势", | ||
}).then((res) => { | ||
console.log(res); | ||
console.log(replaceContentWithSequence(res)); | ||
}); |
Oops, something went wrong.