Question Oliver Wilms · May 29 Prompt Engineering for ollama-ai-iris My use case is I want AI to extract six pieces of key information from medical visit notes. It works okay with notes from Epic patient portals. I am struggling with one of my own visit Summaries. So far I have not been able to instruct ollama to give me a JSON response where it gave me what I am asking for. My original medical_progress_notes_prompt was: Medical progress note:---(document)--- You are an expert in analyzing medical progress notes. Please carefully read the provided progress note above and extract the following key information: #Generative AI (GenAI) #InterSystems IRIS 0 1 0 45
Question Oliver Wilms · 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. #Artificial Intelligence (AI) #Containerization #Docker #Generative AI (GenAI) #Large Language Model (LLM) #Python #InterSystems IRIS 0 3 0 58
Question Oliver Wilms · Apr 21 My AI use case - need help with Ollama and / or Langchain I am brand new to using AI. I downloaded some medical visit progress notes from my Patient Portal. I extracted text from PDF files. I found a YouTube video that showed how to extract metadata using an OpenAI query / prompt such as this one: ollama-ai-iris/data/prompts/medical_progress_notes_prompt.txt at main · oliverwilms/ollama-ai-iris #Artificial Intelligence (AI) #Containerization #Docker #Generative AI (GenAI) #Large Language Model (LLM) #Python #InterSystems IRIS #InterSystems IRIS for Health 0 0 0 61
Question Oliver Wilms · Apr 20 Connection URL from Python to IRIS I read the article by @Rodolfo Pscheidt Jr: https://community.intersystems.com/post/ollama-ai-iris I forked his app and copied selected files from @Guillaume Rongier iris-rag-demo to make it containerized: #Python #InterSystems IRIS for Health 0 3 0 70
Question Oliver Wilms · Apr 19 Error in iris-rag-demo I cloned iris-rag-demo from Open Exchange and issued docker-compose up -d. I went to the front end and type in the chat message: Who was the 46th President of United States of America? I got a run time error: RuntimeError: ERROR <Ens>ErrBPTerminated: Terminating BP ChatProcess # due to error: ERROR #5002: ObjectScript error: <PYTHON EXCEPTION> *<class 'RuntimeError'>: <PYTHON EXCEPTION> <class 'ValueError' > ERROR #5002: ObjectScript error: <PYTHON EXCEPTION> *<class 'RuntimeError' Traceback: #Docker #Python #InterSystems IRIS for Health #InterSystems IRIS #Open Exchange 0 0 0 35
Question Oliver Wilms · Apr 19 Problem with ollama container in langchain-iris-tool I cloned @Yuri.Marx's langchain-iris-tool repo and modified docker-compose yaml per this post: https://community.intersystems.com/post/error-when-trying-langchain-iris... Now I see this: #Docker #Key Question #InterSystems IRIS for Health #Open Exchange 1 9 0 102
Question Oliver Wilms · Apr 18 Error when trying langchain-iris-tool I cloned @Yuri.Marx's langchain-iris-tool repo and typed docker-compose up -d. I see error message: Error response from daemon: could not select device driver "nvidia" with capabilities: [[gpu]] #Docker #InterSystems IRIS for Health #Open Exchange 0 1 0 44
Question Oliver Wilms · Apr 4 REST application gets 403 Forbidden I deployed an IRIS REST application using Installer class. I think I created the namespace FEEDER database with %DB_Default resource and I used the same resource in Web Application roles. I allowed Unauthenticated Authentication method. I used ^%ISCLOG and reviewed ^ISCLOG. I do not understand why I get 403 Forbidden response. #REST API #InterSystems IRIS for Health 0 4 0 47
Question Oliver Wilms · Jan 19 Where did my variables go? Without Exclusive NEW, now I get <UNDEFINED> I inherited some legacy MUMPS / ObjectScript code. A code review identified an exclusive NEW and that is not allowed per our coding standards. The original code contains: RUN(CALL,DRVNAME) S $EC="" S ^TMP($J,"RMPV","DRVNAME")=DRVNAME N TMPFILE,OLDIO S OLDIO=$IO I $G(^TMP("RMPV","SILENT"),1) S IOP="NULL",%ZIS=0 D ^%ZIS I '$G(POP,1) U IO D INIT^@DRVNAME D ; scope variables .N (DUZ,CALL) ; Protect %response .S IOF="""""",IOM=80,U="^" .D @CALL U OLDIO Q #ObjectScript #Caché #InterSystems IRIS for Health #InterSystems IRIS 0 3 0 100
Question Oliver Wilms · Dec 15, 2024 ERROR #9761: No key in provided JWKS for alg ES512 and kid I am trying to work with Epic on FHIR. Epic's documentation stated, your application makes a HTTP POST request to the authorization server's OAuth 2.0 token endpoint to obtain access token. Set tSC = ##class(%SYS.OAuth2.Authorization).GetAccessTokenClient(pClient,pScopes,.prop,.err) returns ERROR #9761: No key in provided JWKS for alg ES512 and kid I check this /csp/sys/oauth2/OAuth2.JWTServer.cls?client_name=medbank and I see this: #FHIR #OAuth2 #InterSystems IRIS 0 1 0 63
Question Oliver Wilms · Nov 22, 2024 Can I connect to Epic FHIR sandbox server using iris-fhir-client? I finally figured out how to get JWT token using set x = ##class(%SYS.OAuth2.Authorization).GetAccessTokenClient("medbank","openid fhirUser",.prop,.err). I also found iris-fhir-client app on Open Exchange. I registered Epic sandbox server, but I cannot list resources. I suspect I need to integrate authorization / authentication. How do I do this with irisfhirclient py? #Authentication #FHIR #OAuth2 #InterSystems IRIS for Health 2 1 0 99
Question Oliver Wilms · Nov 19, 2024 How to create a signed JWT I need to create a JWT to connect to EPIC FHIRserver sandbox. https://fhir.epic.com/Documentation?docId=oauth2§ion=BackendOAuth2Guide You will generate a one-time use JSON Web Token (JWT) to authenticate your app to the authorization server and obtain an access token that can be used to authenticate your app's web service calls. There are several libraries for creating JWTs. See jwt.io for some examples. #Encryption #FHIR #JSON #OAuth2 #InterSystems IRIS for Health 0 5 0 188
Question Oliver Wilms · Oct 17, 2024 Can I add Dynamic Object or Iterator to BPL Context? I have a BPL iterating over Dynamic arrays. Can I add Dynamic Array (%Dynamic Abstract Object) and also %Iterator.Array to BPL context? I tried and I see Error: %AddToSaveSet method does not exist for %Iterator.Array #Business Process (BPL) #HealthShare #Ensemble #Health Connect #InterSystems IRIS 0 1 0 122
Question Oliver Wilms · Oct 12, 2024 Error when I want to build image: sudo: unable to allocate pty: Operation not permitted What is the reason for RUN apt-get update && apt-get install -y \ git \ nano \ python3-opencv \ sudo && \ /bin/echo -e ${ISC_PACKAGE_MGRUSER}\\tALL=\(ALL\)\\tNOPASSWD: ALL >> /etc/sudoers && \ sudo -u ${ISC_PACKAGE_MGRUSER} sudo echo enabled passwordless sudo-ing for ${ISC_PACKAGE_MGRUSER} I think I get error because I do not have sudo privilege in the environment where I use podman to build the image podman build --tag oliver3 . #Git #Ubuntu #Open Exchange 0 0 0 131
Question Oliver Wilms · Oct 3, 2024 Create - and use - custom setting in BPL I try to add custom setting in BPL process by adding parameter SETTINGS = "Scope" and property Scope As %String. But how do I access instance property in BPL process? I get error that method or property Scope is not found. #InterSystems IRIS for Health #Ensemble 0 2 0 123
Question Oliver Wilms · Sep 28, 2024 This site can’t be reached - trying out iris-DataViz I want to try out iris-DataViz app to visualize my own data. I cloned the repo and docker-compose up -d in AWS. IRIS portal works, but on port 8051 I get nothing. I checked my AWS security groups. I reversed IRIS webserver port and 8051 and I can connect to Management portal using port 8051. I don't understand what is refusing connection on port 8051 running in iris-DataViz container. #AWS #Docker #Management Portal #Security #InterSystems IRIS 0 1 0 85
Question Oliver Wilms · Sep 19, 2024 Input Redirection Hello, I try to develop a REST interface where I need to interact with legacy MUMPS routines. How can I pass in input to a Read without modifying the legacy code? I think in linux I can execute command < inputfile to read from file, but how does it work in ObjectScript? #ObjectScript #InterSystems IRIS 0 7 0 225
Question Oliver Wilms · Aug 29, 2024 Create PDF and transfer it via REST Hello, I want to create PDF from HTML source. I found pandoc. I installed pandoc on IRIS container image. I created Interoperability production. I have setup REST service to receive HTML file in request body. I call pandoc command pandoc -o output.pdf input.html from a BPL process. I copy output.pdf file stream into response body. I save the response at the source. I get a file named output.pdf but it does not load in Acrobat. I suspect I am doing something wrong with headers (accept-encoding?) or maybe do I need to base64 encode the pdf file to transfer it via REST? #HTML #Interoperability #REST API #InterSystems IRIS 0 7 0 225
Question Oliver Wilms · Jun 24, 2024 <STRINGSTACK> Error I am updating a large JSON Dynamic Object. Inserting three streams using Do obj.%Set("data",pStream,"stream>base64"). Maybe I am calling Iterate() too often? #JSON #InterSystems IRIS 0 2 0 141
Question Oliver Wilms · Jun 23, 2024 Long JSON values I have JSON object which contains file references. I need to replace the file reference with base64 encoded file which is up to 10MB. I tried the following but it did not work as expected: #JSON #InterSystems IRIS 0 9 0 162