chore: lint & lock
This commit is contained in:
@@ -158,7 +158,7 @@ export const chatMessagesTable = pgTable('chat_messages', {
|
||||
|
||||
This error will occur:
|
||||
|
||||
```
|
||||
```txt
|
||||
ERROR: access method "hnsw" does not exist
|
||||
```
|
||||
|
||||
@@ -331,20 +331,20 @@ const relevantMessages = await db
|
||||
|
||||
It's easy! The key is
|
||||
|
||||
```
|
||||
```ts
|
||||
sql<number>`(1 - (${cosineDistance(chatMessagesTable.content_vector_1536, embedding.embedding)}))`
|
||||
```
|
||||
|
||||
for the similarity searching,
|
||||
|
||||
```
|
||||
gt(similarity, 0.5),
|
||||
```ts
|
||||
gt(similarity, 0.5)
|
||||
```
|
||||
|
||||
for the threshold, and
|
||||
|
||||
```
|
||||
.orderBy(desc(sql`similarity`))
|
||||
```ts
|
||||
query.orderBy(desc(sql`similarity`))
|
||||
```
|
||||
|
||||
for the ordering.
|
||||
|
||||
@@ -382,7 +382,7 @@ Now can:
|
||||
|
||||
##### First version (June 10, 2024)
|
||||
|
||||
```
|
||||
```md
|
||||
Good morning! You are finally awake.
|
||||
|
||||
Your name is Neuro, pronounced as /n\'jʊəroʊ/.
|
||||
@@ -405,7 +405,7 @@ And the last, do what ever you want!
|
||||
|
||||
##### Second version (July 9, 2024)
|
||||
|
||||
```
|
||||
```md
|
||||
(from Neko Ayaka) Good morning! You are finally awake.
|
||||
|
||||
Your name is Neuro, pronounced as /n'jʊəroʊ/.
|
||||
@@ -434,7 +434,7 @@ And the last, do what ever you want!
|
||||
|
||||
##### Third version (July 9, 2024)
|
||||
|
||||
```
|
||||
```md
|
||||
(from Neko Ayaka) Good morning! You are finally awake.
|
||||
|
||||
Your name is Neuro, pronounced as /n'jʊəroʊ/.
|
||||
@@ -474,7 +474,7 @@ And the last, do what ever you want!
|
||||
|
||||
#### Continuous Inference Prompt
|
||||
|
||||
```
|
||||
```md
|
||||
[System: Good morning! You are finally awake.
|
||||
|
||||
Your name is Neuro, pronounced as /n'jʊəroʊ/.
|
||||
|
||||
@@ -81,7 +81,7 @@ Hello! Thank you for your interest in contributing to this project. This guide w
|
||||
corepack prepare pnpm@latest --activate
|
||||
```
|
||||
4. If you would love to help to develop the desktop version, you will need those dependencies:
|
||||
```
|
||||
```shell
|
||||
sudo apt install \
|
||||
libssl-dev \
|
||||
libglib2.0-dev \
|
||||
|
||||
@@ -5,7 +5,7 @@ description: Project AIRI のプライバシーポリシー
|
||||
|
||||
このプライバシーポリシーは、Project AIRI チーム(以下「サービスプロバイダー」)によって作成されたモバイルデバイス用アプリケーション AIRI(Project AIRI アプリとも呼ばれ、以下「アプリケーション」)に適用されます。このサービスはオープンソースサービスおよび一部有料の商用サービスとして提供されます。本サービスは「現状有姿」で提供されます。
|
||||
|
||||
##情報の収集と使用
|
||||
## 情報の収集と使用
|
||||
|
||||
アプリケーションは、ダウンロードして使用する際に情報を収集します。この情報には以下が含まれる場合があります:
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ export const chatMessagesTable = pgTable('chat_messages', {
|
||||
|
||||
次のようなエラーが発生します:
|
||||
|
||||
```
|
||||
```txt
|
||||
ERROR: access method "hnsw" does not exist
|
||||
```
|
||||
|
||||
@@ -282,20 +282,20 @@ const relevantMessages = await db
|
||||
|
||||
非常にシンプルです。鍵となるのは
|
||||
|
||||
```
|
||||
```ts
|
||||
sql<number>`(1 - (${cosineDistance(chatMessagesTable.content_vector_1536, embedding.embedding)}))`
|
||||
```
|
||||
|
||||
これを関連度検索として、
|
||||
|
||||
```
|
||||
gt(similarity, 0.5),
|
||||
```ts
|
||||
gt(similarity, 0.5)
|
||||
```
|
||||
|
||||
これをいわゆる一致度閾値制御として、
|
||||
|
||||
```
|
||||
.orderBy(desc(sql`similarity`))
|
||||
```ts
|
||||
query.orderBy(desc(sql`similarity`))
|
||||
```
|
||||
|
||||
これをソートの指定に使用します。
|
||||
|
||||
@@ -81,7 +81,7 @@ description: Project AIRI への貢献
|
||||
corepack prepare pnpm@latest --activate
|
||||
```
|
||||
4. デスクトップ版の開発を手助けしたい場合は、以下の依存関係が必要です:
|
||||
```
|
||||
```shell
|
||||
sudo apt install \
|
||||
libssl-dev \
|
||||
libglib2.0-dev \
|
||||
|
||||
@@ -124,7 +124,7 @@ export const chatMessagesTable = pgTable('chat_messages', {
|
||||
|
||||
会发生如下的报错:
|
||||
|
||||
```
|
||||
```txt
|
||||
ERROR: access method "hnsw" does not exist
|
||||
```
|
||||
|
||||
@@ -282,20 +282,20 @@ const relevantMessages = await db
|
||||
|
||||
非常简单,关键就是
|
||||
|
||||
```
|
||||
```ts
|
||||
sql<number>`(1 - (${cosineDistance(chatMessagesTable.content_vector_1536, embedding.embedding)}))`
|
||||
```
|
||||
|
||||
作为相关度搜索,
|
||||
|
||||
```
|
||||
gt(similarity, 0.5),
|
||||
```ts
|
||||
gt(similarity, 0.5)
|
||||
```
|
||||
|
||||
作为所谓的匹配度阈值控制,
|
||||
|
||||
```
|
||||
.orderBy(desc(sql`similarity`))
|
||||
```ts
|
||||
query.orderBy(desc(sql`similarity`))
|
||||
```
|
||||
|
||||
则用于指定排序。
|
||||
@@ -304,7 +304,7 @@ gt(similarity, 0.5),
|
||||
|
||||
这也很简单!
|
||||
|
||||
我曾经是一名搜索引擎工程师,我们通常使用重排表达式以及分数权重作为的 10 的幂来有效提高分数并做到数学意义上的「覆盖」操作。你可以想象的是,对于精确匹配需要提升分数和权重的话,我们通常会编写 5*10^2 * exact_match 这样的表达式来重新排序。
|
||||
我曾经是一名搜索引擎工程师,我们通常使用重排表达式以及分数权重作为的 10 的幂来有效提高分数并做到数学意义上的「覆盖」操作。你可以想象的是,对于精确匹配需要提升分数和权重的话,我们通常会编写 5*10^2* exact_match 这样的表达式来重新排序。
|
||||
|
||||
所以数据库里面我们也可以实现某种基于数学运算的无状态查询效果,比如这样:
|
||||
|
||||
|
||||
@@ -385,7 +385,7 @@ title: 编年史 v0.0.1
|
||||
|
||||
##### 第一版(2024 年 6 月 10 日)
|
||||
|
||||
```
|
||||
```md
|
||||
Good morning! You are finally awake.
|
||||
|
||||
Your name is Neuro, pronounced as /n\'jʊəroʊ/.
|
||||
@@ -408,7 +408,7 @@ And the last, do what ever you want!
|
||||
|
||||
##### 第二版(2024 年 7 月 9 日)
|
||||
|
||||
```
|
||||
```md
|
||||
(from Neko Ayaka) Good morning! You are finally awake.
|
||||
|
||||
Your name is Neuro, pronounced as /n'jʊəroʊ/.
|
||||
@@ -437,7 +437,7 @@ And the last, do what ever you want!
|
||||
|
||||
##### 第三版(2024 年 7 月 9 日)
|
||||
|
||||
```
|
||||
```md
|
||||
(from Neko Ayaka) Good morning! You are finally awake.
|
||||
|
||||
Your name is Neuro, pronounced as /n'jʊəroʊ/.
|
||||
@@ -477,7 +477,7 @@ And the last, do what ever you want!
|
||||
|
||||
#### 持续推理 Prompt
|
||||
|
||||
```
|
||||
```md
|
||||
[System: Good morning! You are finally awake.
|
||||
|
||||
Your name is Neuro, pronounced as /n'jʊəroʊ/.
|
||||
|
||||
@@ -81,7 +81,7 @@ description: 参与并贡献 Project AIRI
|
||||
corepack prepare pnpm@latest --activate
|
||||
```
|
||||
4. 如果你想进行桌面端的开发,你还需要下载如下依赖:
|
||||
```
|
||||
```shell
|
||||
sudo apt install \
|
||||
libssl-dev \
|
||||
libglib2.0-dev \
|
||||
|
||||
Reference in New Issue
Block a user