Skip to content

Commit 231f9f9

Browse files
committed
sync: update from internal GitLab repository
Content updated: Files: - module.xml Directories: - scripts/ Synced at: 2025-08-04 09:03:57
1 parent 0ba902d commit 231f9f9

File tree

3 files changed

+21
-47
lines changed

3 files changed

+21
-47
lines changed

module.xml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Export generator="IRIS" version="26">
3-
<!-- Simple IRIS module export without ZPM package manager dependencies -->
4-
<Module>
5-
<Name>iris-rag</Name>
6-
<Version>0.2.0</Version>
7-
<Description>A comprehensive, production-ready framework for implementing Retrieval Augmented Generation (RAG) pipelines using InterSystems IRIS as the vector database backend.</Description>
8-
<Keywords>RAG,Vector Search,Machine Learning,AI,IRIS,Python,Embeddings</Keywords>
9-
<Packaging>module</Packaging>
10-
<SourcesRoot>objectscript</SourcesRoot>
11-
<Resource Name="RAG.PKG"/>
12-
13-
<!-- Dependencies section left empty to avoid ZPM issues -->
14-
<Dependencies>
15-
</Dependencies>
16-
</Module>
3+
<Document name="iris-rag.ZPM">
4+
<Module>
5+
<Name>iris-rag</Name>
6+
<Version>0.2.0</Version>
7+
<Description>A comprehensive, production-ready framework for implementing Retrieval Augmented Generation (RAG) pipelines using InterSystems IRIS as the vector database backend.</Description>
8+
<Keywords>RAG,Vector Search,Machine Learning,AI,IRIS,Python,Embeddings</Keywords>
9+
<Packaging>module</Packaging>
10+
<SourcesRoot>objectscript</SourcesRoot>
11+
<Resource Name="RAG.PKG"/>
12+
<Dependencies>
13+
</Dependencies>
14+
</Module>
15+
</Document>
1716
</Export>

scripts/utilities/validate_ipm_module.py

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ def validate_objectscript_classes(self) -> None:
175175

176176
# Check required classes (use .CLS extension for IRIS)
177177
required_classes = [
178-
"RAG/IPMInstaller.CLS",
179178
"RAG/PythonBridge.CLS",
180179
"RAG/VectorMigration.CLS"
181180
]
@@ -215,35 +214,8 @@ def validate_objectscript_classes(self) -> None:
215214
"error": f"Read error: {e}"
216215
}
217216

218-
# Check for specific methods in IPMInstaller
219-
installer_path = objectscript_dir / "RAG.IPMInstaller.cls"
220-
if installer_path.exists():
221-
try:
222-
with open(installer_path, 'r', encoding='utf-8') as f:
223-
installer_content = f.read()
224-
225-
required_methods = [
226-
"Setup",
227-
"Configure",
228-
"Activate",
229-
"Test",
230-
"ValidateIRISVersion",
231-
"EnableVectorSearch",
232-
"InstallPythonPackage"
233-
]
234-
235-
missing_methods = []
236-
for method in required_methods:
237-
if f"ClassMethod {method}" not in installer_content:
238-
missing_methods.append(method)
239-
240-
class_results["RAG.IPMInstaller.cls"]["required_methods"] = {
241-
"all_present": len(missing_methods) == 0,
242-
"missing": missing_methods
243-
}
244-
245-
except Exception as e:
246-
class_results["RAG.IPMInstaller.cls"]["method_check_error"] = str(e)
217+
# Note: IPMInstaller.CLS was removed to eliminate ZPM dependencies
218+
# for Community Edition compatibility
247219

248220
self.results["objectscript_classes"] = {
249221
"directory_exists": True,

scripts/validate_ipm_package.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@ def validate_ipm_package(repo_path: str) -> Tuple[bool, List[str]]:
3636
tree = ET.parse(module_xml)
3737
root = tree.getroot()
3838

39-
# Find the Module element
40-
module = root.find(".//Module")
39+
# Find the Module element (could be root or nested)
40+
if root.tag == "Module":
41+
module = root
42+
else:
43+
module = root.find(".//Module")
44+
4145
if module is None:
4246
issues.append("❌ No Module element found in module.xml")
4347
return False, issues
@@ -96,7 +100,6 @@ def validate_ipm_package(repo_path: str) -> Tuple[bool, List[str]]:
96100
objectscript_dir = repo_root / "objectscript"
97101
if objectscript_dir.exists():
98102
required_cls_files = [
99-
"RAG/IPMInstaller.CLS",
100103
"RAG/VectorMigration.CLS",
101104
"RAG/IFindSetup.CLS",
102105
"RAG/SourceDocumentsWithIFind.CLS"

0 commit comments

Comments
 (0)