@semiont/backend 0.4.12 → 0.4.14

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": {
@@ -5832,6 +5865,10 @@
5832
5865
  },
5833
5866
  "authenticatedAs": {
5834
5867
  "type": "string"
5868
+ },
5869
+ "projectName": {
5870
+ "type": "string",
5871
+ "description": "Name of the knowledge base project"
5835
5872
  }
5836
5873
  },
5837
5874
  "required": [
@@ -6355,6 +6392,22 @@
6355
6392
  "description": "LLM-generated summary of the annotation's relationships in the knowledge graph"
6356
6393
  }
6357
6394
  }
6395
+ },
6396
+ "semanticContext": {
6397
+ "type": "object",
6398
+ "description": "Semantically similar passages from across the knowledge base, found via vector search",
6399
+ "properties": {
6400
+ "similar": {
6401
+ "type": "array",
6402
+ "items": {
6403
+ "$ref": "#/components/schemas/SemanticMatch"
6404
+ },
6405
+ "description": "Passages ranked by cosine similarity to the focal text"
6406
+ }
6407
+ },
6408
+ "required": [
6409
+ "similar"
6410
+ ]
6358
6411
  }
6359
6412
  },
6360
6413
  "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.14",
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.14",
24
+ "@semiont/event-sourcing": "^0.4.14",
25
+ "@semiont/jobs": "^0.4.14",
26
+ "@semiont/make-meaning": "^0.4.14",
27
27
  "ajv": "^8.17.1",
28
28
  "ajv-formats": "^3.0.1",
29
29
  "argon2": "^0.44.0",