Find

Question
· Apr 27

I want to use ollama and IRIS for my AI use case - How do I connect to ollama?

I combined @Rodolfo Pscheidt https://github.com/RodolfoPscheidtJr/ollama-ai-iris with some files from @Guillaume Rongier https://openexchange.intersystems.com/package/iris-rag-demo.

My own project is https://github.com/oliverwilms/ollama-ai-iris

I can run load_data.py and it connects to IRIS (same container).

When I try to run query_data.py https://github.com/oliverwilms/ollama-ai-iris/blob/main/query_data.py , it cannot connect to ollama:

ConnectionError: Failed to connect to Ollama. Please check that Ollama is downloaded, running and accessible.

I wonder if I need to add in query_data.py, how it can "find" ollama which is  in docker-compose.yml?

https://github.com/oliverwilms/ollama-ai-iris/blob/main/docker-compose.yml

3 Comments
Discussion (3)2
Log in or sign up to continue
Question
· Apr 26

Como transferir um arquivo que se encontra em um computador remoto para o servidor onde está instalado o IRIS, através de CSP?

Oi Pessoal,

Por favor,

Gostaria de um exemplo de código csp para tranferir um arquivo xml, txt, csp para o servidor onde se encontra instalado o IRIS.

Obrigado,

Edilson

3 Comments
Discussion (3)3
Log in or sign up to continue
Question
· Apr 26

Which DB Resource to provide to a web application related role for a deployed app?

Hi developers!

While developing web apps the security practice I consider safe and convenient is to create a special Role (e.g. equal application name) which contains security resources which application will need (SQL tables, priviledges, database access, etc) and assign it to the Web Application.
So the user gets this role once it loggs in to the application (via password, no password or delegated).

Convenient, right?

So, the question is, when I deploy the app as an IPM module what should I put as a database access?

For example I develop the app in the USER namespace so I list the access to %DB_USER in Role's resources and the export(D ##class(Security.Roles).Export("/home/irisowner/dev/roles.xml",,"lovable",,1) looks like:

<?xml version="1.0" encoding="UTF-8"?>

<RolesExport>

<Roles>

<Name>lovable</Name>

<Version>4</Version>

</Roles>

<Roles>

<GrantedRoles>

<GrantedRolesItem>%DB_USER</GrantedRolesItem>

</GrantedRoles>

<Name>lovable</Name>

<Version>4</Version>

</Roles>

<SQLPrivileges>

<Namespace>USER</Namespace>

<SQLObject>1,dc_Sample.Person</SQLObject>

<Privilege>s</Privilege>

<Grantee>lovable</Grantee>

<Grantor>SuperUser</Grantor>

<Grantable>0</Grantable>

</SQLPrivileges>

<SQLRoleGrantOption>

<UserOrRole>lovable</UserOrRole>

<RoleGranted>%DB_USER</RoleGranted>

<Grantable>0</Grantable>

</SQLRoleGrantOption>

</RolesExport>

But the app could be installed in any database, right? Which resource should I provide? Maybe %DB_DEFAULT (What does it mean BTW)? Any ideas?

4 Comments
Discussion (4)3
Log in or sign up to continue
Question
· Apr 25

Setting Python

Hi Guys,

I'm a newbie running IRIS in a container (IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2024.3 (Build 217U) Thu Nov 14 2024 17:30:43 EST) and trying to setup Python so I can start working on ML & Autosklearn,my understanding is that IRIS already comes with embedded Python but unable to do something like "import pandas as pd"  in VSCode which looks like I need install a more complete version of Python or packages, so what I'm missing?

 

 

And how can I go to embedded Python editor in my VSCode because my understanding you can find under explorer option in VScode but I can't find it?

 

 

Thanks

2 Comments
Discussion (2)2
Log in or sign up to continue
Question
· Apr 25

In the rule's when condition(), how can I get the EffectiveEndDateTime of the parent ruleset?

Hi,

I want to ensure that the parent ruleset has an EffectiveEndDateTime when I evaluate a rule's when condition() . How would I do that please ?

Thank you.

W

Discussion (0)1
Log in or sign up to continue