@getzep/zep-cloud 1.0.11 → 1.0.12

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.
package/README.md CHANGED
@@ -23,16 +23,28 @@ Zep: Long-Term Memory for ‍AI Assistants.
23
23
  ## What is Zep? 💬
24
24
  Zep is a long-term memory service for AI Assistant apps. With Zep, you can provide AI assistants with the ability to recall past conversations, no matter how distant, while also reducing hallucinations, latency, and cost.
25
25
 
26
- ### Installation Notes
27
- Main branch contains the latest version of zep-cloud sdk. You can install it by running:
26
+ ### Cloud Installation
27
+ You can install the Zep Cloud SDK by running:
28
28
  ```bash
29
29
  npm install @getzep/zep-cloud
30
30
  ```
31
+ > [!NOTE]
32
+ > Zep Cloud [overview](https://help.getzep.com/concepts) and [cloud sdk guide](https://help.getzep.com/sdks).
31
33
 
32
- Open Source Compatible SDK is available in the [oss](https://github.com/getzep/zep-js/tree/oss) branch, where you can also find Open Source compatible examples. You can install it by running:
34
+ ### Community Installation
33
35
  ```bash
34
36
  npm install @getzep/zep-js
35
37
  ```
38
+ > [!NOTE]
39
+ > Zep Community Edition [quick start](https://help.getzep.com/ce/quickstart) and [sdk guide](https://help.getzep.com/ce/sdks).
40
+
41
+ ### Zep v0.x Compatible SDK
42
+ You can install Zep v0.x compatible sdk by running:
43
+ ```bash
44
+ npm install @getzep/zep-js@^0.10.0
45
+ ```
46
+ > [!NOTE]
47
+ > Zep v0.x [quick start](https://help.getzep.com/ce/legacy/deployment/quickstart) and [sdk guide](https://help.getzep.com/ce/legacy/sdk).
36
48
 
37
49
  ### How Zep works
38
50
 
@@ -22,8 +22,9 @@ exports.getZepMessageRoleType = getZepMessageRoleType;
22
22
  const condenseZepMemoryIntoHumanMessage = (memory) => {
23
23
  var _a;
24
24
  let systemPrompt = "";
25
- if (memory.facts) {
26
- systemPrompt += memory.facts.join("\n");
25
+ if (memory.relevantFacts) {
26
+ const relevantFactStrings = memory.relevantFacts.map(({ fact }) => fact).filter(x => !!x);
27
+ systemPrompt += relevantFactStrings.join("\n");
27
28
  }
28
29
  // Extract summary, if present, and messages
29
30
  if (memory.summary && ((_a = memory.summary) === null || _a === void 0 ? void 0 : _a.content)) {
@@ -22,8 +22,9 @@ exports.getZepMessageRoleType = getZepMessageRoleType;
22
22
  const condenseZepMemoryIntoHumanMessage = (memory) => {
23
23
  var _a;
24
24
  let systemPrompt = "";
25
- if (memory.facts) {
26
- systemPrompt += memory.facts.join("\n");
25
+ if (memory.relevantFacts) {
26
+ const relevantFactStrings = memory.relevantFacts.map(({ fact }) => fact).filter(x => !!x);
27
+ systemPrompt += relevantFactStrings.join("\n");
27
28
  }
28
29
  // Extract summary, if present, and messages
29
30
  if (memory.summary && ((_a = memory.summary) === null || _a === void 0 ? void 0 : _a.content)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getzep/zep-cloud",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "private": false,
5
5
  "repository": "https://github.com/getzep/zep-js",
6
6
  "description": "Zep: Fast, scalable building blocks for production LLM apps",
@@ -20,8 +20,8 @@
20
20
  "zod": "^3.23.8"
21
21
  },
22
22
  "peerDependencies": {
23
- "@langchain/core": ">=0.1.29 <0.3.0",
24
- "langchain": ">=0.1.19 <0.3.0"
23
+ "@langchain/core": ">=0.1.29 <0.4.0",
24
+ "langchain": ">=0.1.19 <0.4.0"
25
25
  },
26
26
  "peerDependenciesMeta": {
27
27
  "langchain": {
@@ -33,7 +33,6 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@faker-js/faker": "^8.4.1",
36
- "@langchain/openai": "0.0.28",
37
36
  "@types/jest": "^29.5.12",
38
37
  "@types/node": "17.0.33",
39
38
  "@types/node-fetch": "2.6.9",
@@ -41,6 +40,7 @@
41
40
  "@types/url-join": "4.0.1",
42
41
  "jest": "^29.7.0",
43
42
  "langchain": "0.1.19",
43
+ "@langchain/openai": "0.0.28",
44
44
  "nock": "^13.5.4",
45
45
  "prettier": "2.7.1",
46
46
  "ts-jest": "^29.1.4",