New post

查找

Article
· Sep 29, 2024 3m read

Unleashing the Power of Vector Search with SQL-Embedding

sql-embedding cover

InterSystems IRIS 2024 recently introduced the vector types.
This addition empowers developers to work with vector search, enabling efficient similarity searches, clustering, and a range of other applications.
In this article, we will delve into the intricacies of vector types, explore their applications, and provide practical examples to guide your implementation.

Discussion (0)0
Log in or sign up to continue
Question
· Sep 29, 2024

How to run a routine when a Namespace component setting is updated/changed?

I need to execute code whenever a production component setting is updated, such as when a service port is changed and the `ens.config` table is updated. This code will handle tasks like logging these updates to a custom table for external reporting purposes.

How can I invoke custom code on these updates?

Ideally, I need to monitor all namespaces that are interoperability-enabled. Whenever a production component setting is changed in any namespace, I need to run the code.

2 Comments
Discussion (2)1
Log in or sign up to continue
Article
· Sep 29, 2024 1m read

IRIS Test Data Generator

The test data generator is mainly used to generate test data, which can be used to generate test data for tables and fields to meet the needs of different fields according to different types, currently supports Text, Number, Enum, UUID, regular expression, Multiple date and time formats, and Time Seven different types
 

How to use:

1. Select a namespace, you can see all the tables under the namespace,

2. Select the table we want to generate test data from, click on the field, and select the type on the right

3. After all the configurations are completed, click on the total number generated, and click on the generated data

Discussion (0)1
Log in or sign up to continue
Question
· Sep 29, 2024

Response of JSON type

Hi Guys,

I'm using the below simple Get Webservice to return a JSON file, its working but the response is actually of Text type not JSON Type 

ClassMethod cmGetHomes(cnt1, cnt2) As %Status
{    response="{""Land"""_":"_""""_cnt1_""",""Home"""_":"_""""_cnt2_"""}"
 // set dataObj=##class(%DynamicObject).%FromJSON(response.data)
 //set response.data = dataObj
 //W response.%ToJSON()
 //set response.data = {}.%FromJSON(response.data)
 //set response.data = {}.%FromJSON(response.data)
 response
 Quit $$$OK
}

This is the response that I'm getting in Postman

But it says type is text not JSON 

 

Thanks

5 Comments
Discussion (5)1
Log in or sign up to continue
Question
· Sep 29, 2024

Run a routine that was created and compiled with %Routine library

I created and then compiled a routine using the %Routine library 


s routine = ##class(%Routine).%New(fileName_"."_extension)
d routine.Write(parsedRule)
//s status = routine.Save()
s status = routine.SaveStream(,.refresh)
if ($$$ISERR(status)) throw status

Now the routine compiles successfully and as a result it is saved on the database.

I can now use from anywhere:


set r = ##class(%Routine).%New("myGeneratedCode.mac")

w r.SizeGet()

 

and it would output the size.

but for the question: How do i run a method in that file? It is saved on the database and i can't relaly see the path, what class can run this routines methods?

 

EDIT:

I can see the routine saved on ^rMAC("myRoutineName")

how can i run this MAC?

 

2 Comments
Discussion (2)2
Log in or sign up to continue