Nova postagem

検索

Pergunta
· 10min atrás

Potenciando la IA Generativa con InterSystems IRIS: SQL + Vectores + GPT-4

En este video les comparto un pequeño laboratorio donde integramos la potencia de una Base de Datos Vectorial nativa con la inteligencia de GPT-4. 🛠️ ¿Qué estamos viendo en acción?
Almacenamiento Vectorial Nativo: Guardamos documentos y sus "embeddings" directamente en IRIS, permitiendo búsquedas de similitud matemática ultra eficientes.
SQL Estándar: Ejecutamos consultas complejas que combinan datos relacionales con vectores, manteniendo la simplicidad del lenguaje que ya conocemos. Conectividad con OpenAI: A través de ObjectScript, establecemos un puente directo con la API de GPT para obtener respuestas precisas basadas en el contexto de nuestra base de datos. 💡 El valor de esta arquitectura:
Utilizar InterSystems IRIS como motor vectorial permite agilizar la comunicación con modelos de lenguaje (LLMs) y facilita la creación de aplicaciones de IA que son escalables, seguras y, sobre todo, están conectadas con la realidad de tus datos de negocio.

Discussão (0)1
Entre ou crie uma conta para continuar
Pergunta
· 4 hr atrás

Quit or Return?

Hi developers!

I'm testing vibecoding with ObjectScript and my silicon friend created a code-block that got me thinking "what's wrong"?

Here is the piece of code:

for i=0:1:(json.%Size()-1) {

set p = json.%Get(i)

if (p="value1")!(p="value2") {

quit 1

}

 

AI wanted to quit from a method with a return value. Good intention, but bad use of the command.

And ObjectScript compiler compiles this code with no error(?) (syntax linter in VSCode says it's a syntax, kudos @Brett Saviano ).

But in action, it produces <COMMAND>, of course.

Wanted to share with you as this is a good case where return command is better than quit, so if we change the snippet to use return, everything will be fine:

for i=0:1:(json.%Size()-1) {

set p = json.%Get(i)

if (p="value1")!(p="value2") {

return 1

}

So I told my AI-companion to go with return further while returning method results.

Do you use return? Or quit? 

3 novos comentários
Discussão (3)2
Entre ou crie uma conta para continuar
Pergunta
· 7 hr atrás

Why Zarro Sports Is Redefining Custom Sportswear for Modern Teams

In today’s competitive sports industry, teams and brands are constantly searching for high-quality, customized apparel that combines performance, durability, and style. That’s where Zarro Sports stands out. As a growing name in the global sportswear market, Zarro Sports is committed to delivering premium custom sports uniforms and apparel tailored to meet the unique needs of teams, clubs, and businesses worldwide.

A Commitment to Quality

At Zarro Sports, quality is not just a promise — it’s a standard. Every product is crafted using carefully selected fabrics designed to enhance performance and comfort. Whether it’s breathable mesh for basketball jerseys, moisture-wicking fabric for soccer uniforms, or durable materials for American football gear, Zarro Sports ensures that athletes perform at their best while looking professional.

The company focuses on strong stitching, vibrant sublimation printing, and long-lasting materials that can withstand intense training sessions and competitive matches. By maintaining strict quality control at every stage of production, Zarro Sports guarantees that customers receive products that meet international standards.

Full Customization for Every Team

One of the key strengths of Zarro Sports is its full customization service. Teams can design uniforms that reflect their identity, including custom logos, colors, player names, and numbers. From basketball and baseball uniforms to soccer kits and American football jerseys, every item can be tailored according to the client’s vision.

Customization is more than just printing a logo. It’s about creating a uniform that builds team spirit and confidence. Zarro Sports works closely with clients to bring their ideas to life, offering design support and flexible options that suit both amateur clubs and professional organizations.

Wide Range of Sports Apparel

Zarro Sports offers an extensive product line that covers multiple sports categories. Their collection includes basketball uniforms, baseball jerseys, soccer kits, American football uniforms, training wear, tracksuits, and more. In addition to team uniforms, the company also provides casual sportswear and custom apparel suitable for schools, academies, and corporate events.

By offering a diverse range of products, Zarro Sports ensures that customers can rely on a single trusted supplier for all their sportswear needs. This streamlined approach saves time and ensures consistent quality across different product lines.

Competitive Pricing and Global Reach

In addition to premium quality, Zarro Sports understands the importance of affordability. The company offers competitive wholesale pricing, making it easier for teams, retailers, and distributors to order in bulk without compromising on quality.

With a growing global presence, Zarro Sports serves clients across different countries, providing reliable shipping and responsive customer service. Their dedication to building long-term partnerships has helped them earn trust in the international market.

Customer-Centric Approach

What truly sets Zarro Sports apart is its customer-focused mindset. From the first inquiry to final delivery, the team prioritizes clear communication, fast response times, and personalized service. Every order is handled with care to ensure customer satisfaction.

The company values feedback and continuously works to improve its designs, materials, and services. This commitment to excellence allows Zarro Sports to stay ahead in a rapidly evolving sportswear industry.

The Future of Custom Sportswear

As the demand for customized sports apparel continues to grow, Zarro Sports is positioned to lead the way. By combining innovation, craftsmanship, and affordability, the brand empowers teams to showcase their identity with confidence.

Whether you are a sports club, academy, retailer, or organization looking for premium custom uniforms, Zarro Sports offers a complete solution. With quality you can trust and customization that reflects your team’s spirit, Zarro Sports is redefining what it means to wear your passion on the field.

Discussão (0)1
Entre ou crie uma conta para continuar
Artigo
· 18 hr atrás 1min de leitura

Gerenciando corretamente o horário do sistema no meu container IRIS

Em um ambiente containerizado, você pode gerenciar o horário do seu container usando a variável TZ ou por meio dos arquivos /etc/timezone e /etc/localtime:

environment:
      - TZ=Europe/Paris
volumes:
    - "/etc/timezone:/etc/timezone:ro"
    - "/etc/localtime:/etc/localtime:ro"

Você pode encontrar exemplos completos aqui:

IRIS Community

IRISHealth_Community

IRIS production

IRISHealth production

Discussão (0)1
Entre ou crie uma conta para continuar
Artigo
· 18 hr atrás 2min de leitura

Usando o InterSystems Lite Terminal a partir do Python

As versões recentes do IRIS já vêm com o Lite Terminal disponível no VSCode. Ele funciona como um servidor WebSocket, com comunicação via mensagens JSON. Aqui está como se conectar a ele a partir do Python:

import websocket
import argparse
import requests
import json


def terminal(host, port, namespace, username, password, command, secure):
    session = requests.Session()
    r = session.get(f"http{"s" if secure else ""}://{host}:{port}/api/atelier/", auth=(username, password))
    cookies = session.cookies.get_dict()
    ws = websocket.WebSocket()
    ws.connect(f"ws{"s" if secure else ""}://{host}:{port}/api/atelier/v8/%25SYS/terminal",
               cookie="; ".join(["%s=%s" % (i, j) for i, j in cookies.items()]))
    print(ws.recv())
    ws.send(json.dumps({"type": "config", "namespace": namespace, "rawMode": False}))
    print(ws.recv())
    ws.send(json.dumps({"type": "prompt", "input": command}))
    print(ws.recv())
    ws.close()


if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='Connect to VSCode Terminal and execute a command')
    parser.add_argument('--username', default="_SYSTEM", help='InterSystems IRIS User')
    parser.add_argument('--password', default="SYS", help='Corresponding password')
    parser.add_argument('--host', default="localhost", help='IRIS Server')
    parser.add_argument('--port', default=52773, help='IRIS Web Server Port')
    parser.add_argument('--namespace', default="USER", help='IRIS Namespace')
    parser.add_argument('--command', default="w $zv", help='IRIS Command to execute')
    parser.add_argument('--secure', default=False, help='Use HTTPS/WSS')
    args = parser.parse_args()
    terminal(args.host, args.port, args.namespace, args.username, args.password, args.command, args.secure)

Ao executá-lo, será gerada a seguinte saída:

{"type":"init","protocol":1,"version":"IRIS for Windows (x86-64) 2025.1 (Build 223U) Tue Mar 11 2025 18:14:42 EDT"}
{"type":"prompt","text":"\u001b[1mUSER>\u001b[0m"}
{"type":"output","text":"IRIS for Windows (x86-64) 2025.1 (Build 223U) Tue Mar 11 2025 18:14:42 EDT"}

Para depurar a conexão, defina ^IRIS.Temp.Atelier("terminal") como 1; toda a comunicação será registrada nessa mesma global.

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