@semiont/backend 0.4.12 → 0.4.13

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/dist/openapi.json CHANGED
@@ -5667,6 +5667,39 @@
5667
5667
  }
5668
5668
  }
5669
5669
  },
5670
+ "SemanticMatch": {
5671
+ "type": "object",
5672
+ "properties": {
5673
+ "text": {
5674
+ "type": "string",
5675
+ "description": "The chunk text that matched"
5676
+ },
5677
+ "resourceId": {
5678
+ "type": "string",
5679
+ "description": "Source resource ID"
5680
+ },
5681
+ "annotationId": {
5682
+ "type": "string",
5683
+ "description": "Source annotation ID, if the match is from an annotation"
5684
+ },
5685
+ "score": {
5686
+ "type": "number",
5687
+ "description": "Cosine similarity score (0-1)"
5688
+ },
5689
+ "entityTypes": {
5690
+ "type": "array",
5691
+ "items": {
5692
+ "type": "string"
5693
+ },
5694
+ "description": "Entity types on the matched passage"
5695
+ }
5696
+ },
5697
+ "required": [
5698
+ "text",
5699
+ "resourceId",
5700
+ "score"
5701
+ ]
5702
+ },
5670
5703
  "ResourceLLMContextResponse": {
5671
5704
  "type": "object",
5672
5705
  "properties": {
@@ -6355,6 +6388,22 @@
6355
6388
  "description": "LLM-generated summary of the annotation's relationships in the knowledge graph"
6356
6389
  }
6357
6390
  }
6391
+ },
6392
+ "semanticContext": {
6393
+ "type": "object",
6394
+ "description": "Semantically similar passages from across the knowledge base, found via vector search",
6395
+ "properties": {
6396
+ "similar": {
6397
+ "type": "array",
6398
+ "items": {
6399
+ "$ref": "#/components/schemas/SemanticMatch"
6400
+ },
6401
+ "description": "Passages ranked by cosine similarity to the focal text"
6402
+ }
6403
+ },
6404
+ "required": [
6405
+ "similar"
6406
+ ]
6358
6407
  }
6359
6408
  },
6360
6409
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semiont/backend",
3
- "version": "0.4.12",
3
+ "version": "0.4.13",
4
4
  "type": "module",
5
5
  "description": "Semiont backend server - pre-built for npm consumption",
6
6
  "main": "dist/index.js",
@@ -20,10 +20,10 @@
20
20
  "@hono/swagger-ui": "^0.6.1",
21
21
  "@prisma/adapter-pg": "^7.5.0",
22
22
  "@prisma/client": "^7.5.0",
23
- "@semiont/core": "^0.4.12",
24
- "@semiont/event-sourcing": "^0.4.12",
25
- "@semiont/jobs": "^0.4.12",
26
- "@semiont/make-meaning": "^0.4.12",
23
+ "@semiont/core": "^0.4.13",
24
+ "@semiont/event-sourcing": "^0.4.13",
25
+ "@semiont/jobs": "^0.4.13",
26
+ "@semiont/make-meaning": "^0.4.13",
27
27
  "ajv": "^8.17.1",
28
28
  "ajv-formats": "^3.0.1",
29
29
  "argon2": "^0.44.0",