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 \
|
||||
|
||||
Reference in New Issue
Block a user