Skip to content

Commit fb2ade4

Browse files
committed
sync: update from internal GitLab repository
Content updated: Files: - .gitignore Directories: - objectscript/ Synced at: 2025-08-05 15:38:51
1 parent 3bcd1e4 commit fb2ade4

File tree

7 files changed

+72
-134
lines changed

7 files changed

+72
-134
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,28 @@ PIPELINE_*.md
242242

243243
# Claude Code guidance file (internal development tool)
244244
CLAUDE.md
245+
246+
# Claude Flow generated files
247+
.claude/settings.local.json
248+
.mcp.json
249+
claude-flow.config.json
250+
.swarm/
251+
.hive-mind/
252+
memory/claude-flow-data.json
253+
memory/sessions/*
254+
!memory/sessions/README.md
255+
memory/agents/*
256+
!memory/agents/README.md
257+
coordination/memory_bank/*
258+
coordination/subtasks/*
259+
coordination/orchestration/*
260+
*.db
261+
*.db-journal
262+
*.db-wal
263+
*.sqlite
264+
*.sqlite-journal
265+
*.sqlite-wal
266+
claude-flow
267+
claude-flow.bat
268+
claude-flow.ps1
269+
hive-mind-prompt-*.txt

objectscript/RAG/MinimalTest.CLS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Class RAG.MinimalTest Extends %Persistent
2+
{
3+
Property TestProperty As %String;
4+
}
Lines changed: 12 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,15 @@
1-
/// RAG SourceDocuments table with iFind support - FIXED VERSION
2-
/// This class provides a table structure compatible with iFind functionality
31
Class RAG.SourceDocumentsFixed Extends %Persistent
42
{
5-
6-
/// Document identifier
7-
Property doc_id As %String(MAXLEN = 255) [ Required ];
8-
9-
/// Document title
10-
Property title As %String(MAXLEN = 500);
11-
12-
/// Full text content - iFind works on any text field automatically
13-
Property text_content As %Stream.GlobalCharacter;
14-
15-
/// Document authors
16-
Property authors As %String(MAXLEN = 1000);
17-
18-
/// Document keywords
19-
Property keywords As %String(MAXLEN = 1000);
20-
21-
/// Vector embedding as string
22-
Property embedding As %String(MAXLEN = 60000);
23-
24-
/// Creation timestamp
25-
Property created_at As %TimeStamp [ InitialExpression = {$ZDateTime($Horolog,3)} ];
26-
27-
/// Index on document ID for fast lookups
28-
Index DocIdIndex On doc_id [ Unique ];
29-
30-
/// Index on creation timestamp for temporal queries
31-
Index CreatedAtIndex On created_at;
32-
33-
/// Storage definition for the class
34-
Storage Default
35-
{
36-
<Data name="SourceDocumentsFixedDefaultData">
37-
<Value name="1">
38-
<Value>%%CLASSNAME</Value>
39-
</Value>
40-
<Value name="2">
41-
<Value>doc_id</Value>
42-
</Value>
43-
<Value name="3">
44-
<Value>title</Value>
45-
</Value>
46-
<Value name="4">
47-
<Value>text_content</Value>
48-
</Value>
49-
<Value name="5">
50-
<Value>authors</Value>
51-
</Value>
52-
<Value name="6">
53-
<Value>keywords</Value>
54-
</Value>
55-
<Value name="7">
56-
<Value>embedding</Value>
57-
</Value>
58-
<Value name="8">
59-
<Value>created_at</Value>
60-
</Value>
61-
</Data>
62-
<DataLocation>^RAG.SourceDocumentsFixedD</DataLocation>
63-
<DefaultData>SourceDocumentsFixedDefaultData</DefaultData>
64-
<IdLocation>^RAG.SourceDocumentsFixedD</IdLocation>
65-
<IndexLocation>^RAG.SourceDocumentsFixedI</IndexLocation>
66-
<StreamLocation>^RAG.SourceDocumentsFixedS</StreamLocation>
67-
<Type>%Storage.Persistent</Type>
68-
}
69-
3+
/// Document identifier
4+
Property doc_id As %String(MAXLEN=255);
5+
/// Document title
6+
Property title As %String(MAXLEN=500);
7+
/// Full text content - limited to 5000 chars for ObjectScript compilation
8+
Property text_content As %String(MAXLEN=5000);
9+
/// Document authors
10+
Property authors As %String(MAXLEN=1000);
11+
/// Document keywords
12+
Property keywords As %String(MAXLEN=1000);
13+
/// Abstract/summary
14+
Property abstract As %String(MAXLEN=2000);
7015
}
Lines changed: 10 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,13 @@
1-
/// RAG SourceDocuments table with iFind support
2-
/// This class provides a table structure compatible with iFind functionality
31
Class RAG.SourceDocumentsWithIFind Extends %Persistent
42
{
5-
6-
/// Document identifier
7-
Property doc_id As %String(MAXLEN = 255) [ Required ];
8-
9-
/// Document title
10-
Property title As %String(MAXLEN = 500);
11-
12-
/// Full text content - iFind works on any text field automatically
13-
Property text_content As %Stream.GlobalCharacter;
14-
15-
/// Document authors
16-
Property authors As %String(MAXLEN = 1000);
17-
18-
/// Document keywords
19-
Property keywords As %String(MAXLEN = 1000);
20-
21-
/// Vector embedding as string
22-
Property embedding As %String(MAXLEN = 60000);
23-
24-
/// Creation timestamp
25-
Property created_at As %TimeStamp [ InitialExpression = {$ZDateTime($Horolog,3)} ];
26-
27-
/// Index on document ID for fast lookups
28-
Index DocIdIndex On doc_id [ Unique ];
29-
30-
/// Index on creation timestamp for temporal queries
31-
Index CreatedAtIndex On created_at;
32-
33-
/// Storage definition for the class
34-
Storage Default
35-
{
36-
<Data name="SourceDocumentsWithIFindDefaultData">
37-
<Value name="1">
38-
<Value>%%CLASSNAME</Value>
39-
</Value>
40-
<Value name="2">
41-
<Value>doc_id</Value>
42-
</Value>
43-
<Value name="3">
44-
<Value>title</Value>
45-
</Value>
46-
<Value name="4">
47-
<Value>text_content</Value>
48-
</Value>
49-
<Value name="5">
50-
<Value>authors</Value>
51-
</Value>
52-
<Value name="6">
53-
<Value>keywords</Value>
54-
</Value>
55-
<Value name="7">
56-
<Value>embedding</Value>
57-
</Value>
58-
<Value name="8">
59-
<Value>created_at</Value>
60-
</Value>
61-
</Data>
62-
<DataLocation>^RAG.SourceDocumentsWithIFindD</DataLocation>
63-
<DefaultData>SourceDocumentsWithIFindDefaultData</DefaultData>
64-
<IdLocation>^RAG.SourceDocumentsWithIFindD</IdLocation>
65-
<IndexLocation>^RAG.SourceDocumentsWithIFindI</IndexLocation>
66-
<StreamLocation>^RAG.SourceDocumentsWithIFindS</StreamLocation>
67-
<Type>%Storage.Persistent</Type>
68-
}
69-
3+
/// Document identifier for HybridIFind pipeline
4+
Property doc_id As %String(MAXLEN=255);
5+
/// Document title
6+
Property title As %String(MAXLEN=500);
7+
/// Document content for iFind search - limited to 5000 chars for ObjectScript compilation
8+
Property text_content As %String(MAXLEN=5000);
9+
/// Document authors
10+
Property authors As %String(MAXLEN=1000);
11+
/// Document keywords
12+
Property keywords As %String(MAXLEN=1000);
7013
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Class RAG.TestMAXLENClone2 Extends %Persistent
2+
{
3+
/// Test different MAXLEN syntax variants (clone of working TestMAXLENVariants)
4+
Property test1 As %String(MAXLEN=255);
5+
Property test2 As %String(MAXLEN = "255");
6+
Property test3 As %String(MAXLEN="255");
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Class RAG.TestMAXLENVariants Extends %Persistent
2+
{
3+
/// Test different MAXLEN syntax variants
4+
Property test1 As %String(MAXLEN=255);
5+
Property test2 As %String(MAXLEN = "255");
6+
Property test3 As %String(MAXLEN="255");
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Class RAG.TestMultipleMAXLEN Extends %Persistent
2+
{
3+
/// Test if multiple MAXLEN properties work like TestMAXLENVariants
4+
Property prop1 As %String(MAXLEN=255);
5+
Property prop2 As %String(MAXLEN=500);
6+
Property prop3 As %String(MAXLEN=1000);
7+
}

0 commit comments

Comments
 (0)