Nova postagem

Pesquisar

Pergunta
· Ago. 22, 2024

Access to current line text

Is there a general way to set a variable XYZ equal to the text of the code line being executed now? Debugger or production. For example, for a code below if code is currently assigning a to 1, XYZ would be equal "S a=1". The same question about a variable containing current routine name.

S a=1

2 Comments
Discussão (2)1
Entre ou crie uma conta para continuar
Artigo
· Ago. 22, 2024 1min de leitura

How to download an image file from a web server using ObjectScript language

InterSystems FAQ rubric

The following code downloads https://www.intersystems.com/assets/intersystems-logo.png and saves the file as c:\temp\test.png.

You need to define an SSL configuration called SSLTEST before executing this code

 

ClassMethod download() As %Status
{
    Set sc = $$$OK
    Set httprequest=##class(%Net.HttpRequest).%New()
    set httprequest.Port = 443
    set httprequest.Https = 1
    set httprequest.SSLConfiguration = "SSLTEST"
    Set httprequest.Server="www.intersystems.com"
    Do httprequest.Get("/assets/intersystems-logo.png")
    Set httpresponse=httprequest.HttpResponse
    Set file=##class(%File).%New("c:\temp\test.png")
    Do file.Open("NWUK\BIN\")
    Do file.CopyFrom(httpresponse.Data)
    Do file.Close()
    Return sc
}
Discussão (0)1
Entre ou crie uma conta para continuar
Anúncio
· Ago. 22, 2024

[Video] Planning Your Generative AI Project

Hi, Community!

Are you ready to start developing a generative AI application? Learn how you can make it as effective as possible:

Planning Your Generative AI Project

In this video,  @Alvin Ryanputra, Systems Developer at InterSystems, explains how to :

  • Define a use case.
  • Identify helpful approaches.
  • Set up a process to continually evaluate your model.

This video is the first in a series about developing generative AI applications. Follow the full Gen AI learning path for developers (2h)!

Discussão (0)1
Entre ou crie uma conta para continuar
Discussão (1)1
Entre ou crie uma conta para continuar
Artigo
· Ago. 22, 2024 5min de leitura

d[IA]gnosis: vectorisation des diagnostics avec Embedded Python et les modèles LLM

Dans l'article précédent, nous avons présenté l'application d[IA]gnosis développée pour soutenir le codage des diagnostics CIM-10. Dans le présent article, nous verrons comment InterSystems IRIS for Health nous fournit les outils nécessaires à la génération de vecteurs à partir de la liste des codes CIM-10 au moyen d'un modèle de langage pré-entraîné, à leur stockage et à la recherche ultérieure de similitudes sur tous ces vecteurs générés.

Discussão (0)0
Entre ou crie uma conta para continuar