go to post Robert Cemper · Apr 5, 2024 agreed.But Switching on/off Journal by process every time you write ^EVENT seems rather uncomfortable. though it's compact as you know exactly when you need it,
go to post Robert Cemper · Apr 5, 2024 depending on the actual long time use you may of course also use ^mtemp.EVENT (in IRISTEMP) instead of a journaled ^EVENT in your actual namespace to escape transactions
go to post Robert Cemper · Apr 5, 2024 LOCK would be indeed the best equivalent to Isolation Modes just IRISTEMP doesn't react to COMMIT or ROLLBACK (there is no related Journal) so instead of writing to your ^EVENT Global you may write to a PPG ^||EVENT acting as your private temp after Commit or Rollback you decide if you MERGE ^||EVENT to public ^EVENT or not. from your description, I assume you do it anyhow
go to post Robert Cemper · Apr 2, 2024 there is an example in OEX https://openexchange.intersystems.com/package/db-migration-using-SQLgateway It's for PostgreSQL but the difference is only the specific jdbc used
go to post Robert Cemper · Apr 1, 2024 Congratulations to all the winners!It was a great event and highly useful to follow.
go to post Robert Cemper · Mar 28, 2024 PLEASE!if you have a different question then PLEASE don't change the original contentthis breaks the total information flow.Existing replies will look like nonsense!
go to post Robert Cemper · Mar 27, 2024 Thanks @Raj Singh great input !I recently struggled with LOAD DATA and finally dropped it in favorof an old-fashioned COS import for 2 reasons: installation of Java was a prerequisite (might be mentioned somewhere, not identified) not a default in community containers quality of data was POOR to express it politely e.g: column expected to be DOUBLE >> content was number $ number some text NULL date with any sick non -SQL format just empty lines by wild running \n so some exception handling after validation would have been a great feature in my caseto filter out sick records. The sick CSV is available on GitHub
go to post Robert Cemper · Mar 27, 2024 By SQL priniciple: any straight name is meant to be a COLUMN of the actual table. eg. Embeddingsbut an external HostVariable is designated by an initial : (colon) e.g. : new_embedding_str or :params This seems to be the deeper cause your problem in addition I'd suggest to add print(new_embedding_str) to verify its format. (one of my problems. Furthermore, take a closer look to this example:iris-vector-search/blob/main/demo/sql_demo.ipynb
go to post Robert Cemper · Mar 27, 2024 Sounds promising:in my COS example, I had to use pure String parameters like "0.54456,0.6987646,0.I123" happened by accident, more for reading and debugging
go to post Robert Cemper · Mar 26, 2024 I use a similar setup in my example in OEX ,Especially with TO_VECTOR() I ran into problems if I didn't add the explicittype and size of the vector. e.g. TO_VECTOR("..........",,DOUBLE,384)as model all-MiniLM-L6-v2 produces exactly that type and size:Don't ask for why. I just used the proposed example
go to post Robert Cemper · Mar 26, 2024 - Thank you @Andrew Wardly:Your observation is pretty correct. It derives from a late Latin dialect spokenaround Locarno (today Switzerland) around 1600. Eventually starting with a very sharp S.So the mental link to "Semper Fidelis" is pretty close and matches well.
go to post Robert Cemper · Mar 22, 2024 eventually better to check for longer lists USER>s x=$lfs("Purple,Black,Yellow,Pink") USER>s y=$lfs("Red,Green,Orange,Yellow") USER>f z="y","x" f i=1:1:$ll(@z) i $i(dif($li(@z,i))) USER>zw dif dif("Black")=1 dif("Green")=1 dif("Orange")=1 dif("Pink")=1 dif("Purple")=1 dif("Red")=1 dif("Yellow")=2 looping with $o() over dif() allows programmatic check
go to post Robert Cemper · Mar 22, 2024 set x="1,4,6,8,9,12" while x>0 {write +x,! set x=$piece(x,",",2,*) } x only !
go to post Robert Cemper · Mar 21, 2024 set X="1,4,6,8,9,12" for i=1:1:$L(X,",") set Y=$p(X,",",i) write Y,!
go to post Robert Cemper · Mar 21, 2024 I just realized that $vector() is a left+right function similar to $li() set $vector(target,...) = .... to set set vec = $vector(...) to get
go to post Robert Cemper · Mar 21, 2024 Thanks. I just looked for TO_VECTOR but failed at that timehttps://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...covers my needs.
go to post Robert Cemper · Mar 21, 2024 Thanks.I was looking for this but couldn't detect.https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_fvector It is not on https://docs.intersystems.com/iris20241/csp/docbookbut on https://docs.intersystems.com/irislatest/csp/docbook which is not covered by Doc Search
go to post Robert Cemper · Mar 21, 2024 experimenting with class %Library.Vector I found an unattractive way: ;; compose JSON array >> v USER>zw v v=[($double(.5)),($double(1.5)),($double(2.2000000000000001776))] ; <DYNAMIC ARRAY> USER>set vec=##class(%Vector).OdbcToLogical(v) USER>zw vec vec={"type":"double", "count":3, "length":3, "vector":[$double(.5),$double(1.5),$double(2.2000000000000001776)]} ; <VECTOR> Applying OdbcToLogical was really shocking