@appland/search 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [@appland/search-v1.1.1](https://github.com/getappmap/appmap-js/compare/@appland/search-v1.1.0...@appland/search-v1.1.1) (2024-12-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Extract complete chunk when splitting text ([75d2f5d](https://github.com/getappmap/appmap-js/commit/75d2f5df06c9794b772116c2facde366d5e1cd7d))
7
+
1
8
  # [@appland/search-v1.1.0](https://github.com/getappmap/appmap-js/compare/@appland/search-v1.0.1...@appland/search-v1.1.0) (2024-12-01)
2
9
 
3
10
 
package/built/splitter.js CHANGED
@@ -42,9 +42,11 @@ async function langchainSplitter(content, fileExtension) {
42
42
  const loc = doc.metadata?.loc;
43
43
  const lines = loc?.lines;
44
44
  const result = {
45
- content: doc.pageContent,
45
+ content: '',
46
46
  };
47
47
  if (lines) {
48
+ const contentLines = content.split('\n');
49
+ result.content = contentLines.slice(lines.from - 1, lines.to).join('\n');
48
50
  result.startLine = lines.from;
49
51
  result.endLine = lines.to;
50
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appland/search",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "bin": "built/cli.js",
6
6
  "publishConfig": {