@sjovanovic/recall.js 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Recall.js is long term memory for AI apps!
8
8
 
9
- It is a generic RAG (Retrieval-augmented generation) JavaScript library and command line interface focused on speed, ease of use and embeddability.
9
+ It is a generic RAG (Retrieval-augmented generation) JavaScript library and command line utility focused on speed, ease of use and embeddability.
10
10
 
11
11
  It is versatile: use it for generic Semantic Search, as expert memory for your AI app, as a recommendation system, there are so many possibilities.
12
12
 
@@ -16,7 +16,7 @@ Under the hood, recall.js uses sentence vector embeddings and a vector database
16
16
 
17
17
  ## Install
18
18
 
19
- `npm install recall`
19
+ `npm install @sjovanovic/recall.js`
20
20
 
21
21
  ## Usage
22
22
 
@@ -24,7 +24,7 @@ Warning: when this library is used for the first time, it will download a local
24
24
 
25
25
  ```javascript
26
26
 
27
- import * as RECALL from 'recall'
27
+ import * as RECALL from '@sjovanovic/recall.js'
28
28
 
29
29
  const testRecall = async () => {
30
30
  await RECALL.addBatch([
@@ -36,7 +36,8 @@ const testRecall = async () => {
36
36
  ])
37
37
 
38
38
  // Semantic search query in different language (French) "Animal jumps over another animal"
39
- let response = await RECALL.searchText("Un animal saute par-dessus un autre animal", 1)
39
+ let response = await RECALL.searchText("Un animal saute par-dessus un autre animal", 1)
40
+ console.log(response)
40
41
  }
41
42
  testRecall()
42
43
 
@@ -54,7 +55,7 @@ response:
54
55
  "rows": [
55
56
  [
56
57
  0.5840495824813843, // vector similarity
57
- "Fox",
58
+ "Fox and dog",
58
59
  "08840189191373282",
59
60
  {
60
61
  "foo": "bar"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjovanovic/recall.js",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Semantic search as long term memory for LLMs",
5
5
  "main": "recall.js",
6
6
  "bin": {