ctxflow-semconv 0.2.2__py3-none-any.whl

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.
@@ -0,0 +1,51 @@
1
+ {
2
+ "algorithm": "uuid5(NAMESPACE, 'source_id|source_version|chunker_version|ordinal'), NAMESPACE = uuid5(NAMESPACE_DNS, 'ctxflow')",
3
+ "notes": [
4
+ "The ordinal of a document without a stable id is content-derived: `h:<first 16 hex of the sha256 of the text>` (same rule as `source-hash.json`). Other ordinals in the cases are inputs, not rules.",
5
+ "The ids leave the process as the vector store holds them (ADR-016): no pseudonym."
6
+ ],
7
+ "cases": [
8
+ {
9
+ "source_id": "kb/refund-policy.md",
10
+ "source_version": "v2",
11
+ "chunker_version": "llamaindex-sentence-1a2b3c4d5e",
12
+ "ordinal": "kb/refund-policy.md:0",
13
+ "id": "7e897098-a741-5705-b4de-5a986e48f8eb"
14
+ },
15
+ {
16
+ "source_id": "kb/refund-policy.md",
17
+ "source_version": "v2",
18
+ "chunker_version": "llamaindex-sentence-1a2b3c4d5e",
19
+ "ordinal": "kb/refund-policy.md:1",
20
+ "id": "72416913-1497-52d0-bf2c-d03050a1a9b0"
21
+ },
22
+ {
23
+ "source_id": "kb/refund-policy.md",
24
+ "source_version": "v3",
25
+ "chunker_version": "llamaindex-sentence-1a2b3c4d5e",
26
+ "ordinal": "kb/refund-policy.md:0",
27
+ "id": "99f42c74-db50-5b83-8e08-3ebcf593230b"
28
+ },
29
+ {
30
+ "source_id": "doc.txt",
31
+ "source_version": "unversioned",
32
+ "chunker_version": "unstructured-by_title-0123456789",
33
+ "ordinal": "o:0:0",
34
+ "id": "c9bfa5af-a7b4-5b70-9832-f2589b1071f4"
35
+ },
36
+ {
37
+ "source_id": "doc.txt",
38
+ "source_version": "unversioned",
39
+ "chunker_version": "unstructured-by_title-0123456789",
40
+ "ordinal": "o:4:1:2",
41
+ "id": "88f473d8-b99f-5cd3-ba90-51fc6038bc38"
42
+ },
43
+ {
44
+ "source_id": "h:0123456789ab",
45
+ "source_version": "h:cafebabecafe",
46
+ "chunker_version": "unstructured-by_title-0123456789",
47
+ "ordinal": "h:0123456789abcdef:3",
48
+ "id": "c6599520-dd29-5abf-b8dc-2946adcab6dc"
49
+ }
50
+ ]
51
+ }
@@ -0,0 +1,116 @@
1
+ {
2
+ "notes": [
3
+ "`env` is the environment of the process (only the `CTXFLOW_*` variables matter); `expected.config` is the result, `expected.error` the variable that is invalid (the SDK fails at start-up and names it).",
4
+ "`otel_env_defaults`: the `OTEL_*` variables the SDK sets when the user did not (a value the user set wins).",
5
+ "Values are trimmed of Unicode white space (Python `str.strip()`: U+00A0 and the other White_Space characters too; PHP `trim()` and JavaScript `trim()` differ: use a Unicode-aware trim).",
6
+ "`CTXFLOW_USAGE*` variables were removed in 0.2.2: no SDK reads them, any value."
7
+ ],
8
+ "otel_env_defaults": {
9
+ "OTEL_TRACES_EXPORTER": "otlp_proto_http",
10
+ "OTEL_EXPORTER_OTLP_PROTOCOL": "http/protobuf",
11
+ "OTEL_METRICS_EXPORTER": "none",
12
+ "OTEL_LOGS_EXPORTER": "none"
13
+ },
14
+ "cases": [
15
+ {
16
+ "name": "empty environment: defaults",
17
+ "env": {},
18
+ "expected": {
19
+ "config": {
20
+ "deterministic_ids": false
21
+ }
22
+ }
23
+ },
24
+ {
25
+ "name": "unrelated variables are ignored",
26
+ "env": {
27
+ "HOME": "/root",
28
+ "CTXFLOW_OTHER": "x"
29
+ },
30
+ "expected": {
31
+ "config": {
32
+ "deterministic_ids": false
33
+ }
34
+ }
35
+ },
36
+ {
37
+ "name": "deterministic ids: on",
38
+ "env": {
39
+ "CTXFLOW_DETERMINISTIC_IDS": "on"
40
+ },
41
+ "expected": {
42
+ "config": {
43
+ "deterministic_ids": true
44
+ }
45
+ }
46
+ },
47
+ {
48
+ "name": "deterministic ids: any case, trimmed",
49
+ "env": {
50
+ "CTXFLOW_DETERMINISTIC_IDS": " TRUE "
51
+ },
52
+ "expected": {
53
+ "config": {
54
+ "deterministic_ids": true
55
+ }
56
+ }
57
+ },
58
+ {
59
+ "name": "deterministic ids: 1",
60
+ "env": {
61
+ "CTXFLOW_DETERMINISTIC_IDS": "1"
62
+ },
63
+ "expected": {
64
+ "config": {
65
+ "deterministic_ids": true
66
+ }
67
+ }
68
+ },
69
+ {
70
+ "name": "deterministic ids: yes",
71
+ "env": {
72
+ "CTXFLOW_DETERMINISTIC_IDS": "yes"
73
+ },
74
+ "expected": {
75
+ "config": {
76
+ "deterministic_ids": true
77
+ }
78
+ }
79
+ },
80
+ {
81
+ "name": "deterministic ids: off",
82
+ "env": {
83
+ "CTXFLOW_DETERMINISTIC_IDS": "off"
84
+ },
85
+ "expected": {
86
+ "config": {
87
+ "deterministic_ids": false
88
+ }
89
+ }
90
+ },
91
+ {
92
+ "name": "deterministic ids: another value is off, not an error",
93
+ "env": {
94
+ "CTXFLOW_DETERMINISTIC_IDS": "maybe"
95
+ },
96
+ "expected": {
97
+ "config": {
98
+ "deterministic_ids": false
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "removed usage variables are ignored, even when invalid",
104
+ "env": {
105
+ "CTXFLOW_USAGE": "maybe",
106
+ "CTXFLOW_USAGE_THRESHOLD": "2",
107
+ "CTXFLOW_USAGE_RETRIEVAL_TOOLS": "a"
108
+ },
109
+ "expected": {
110
+ "config": {
111
+ "deterministic_ids": false
112
+ }
113
+ }
114
+ }
115
+ ]
116
+ }