• Home
  • Categories
  • Tags
  • Pricing
  • Submit
    Decorative pattern
    1. Home
    2. Sdks & Libraries
    3. pgvector-cobol

    pgvector-cobol

    COBOL bindings and examples for pgvector, letting legacy COBOL systems interact with PostgreSQL as a vector database.

    🌐Visit Website

    About this tool


    title: pgvector-cobol slug: pgvector-cobol brand: pgvector brand_logo: https://avatars.githubusercontent.com/u/101229709 category: sdks-libraries tags:

    • sdk
    • pgvector
    • vector-store
    • cobol
    • postgresql
    • embeddings source_url: https://github.com/pgvector/pgvector-cobol license: MIT featured: false images:
    • https://opengraph.githubassets.com/1/pgvector/pgvector-cobol

    Overview

    pgvector-cobol provides COBOL examples and bindings for the pgvector PostgreSQL extension, enabling legacy COBOL applications (via Open Cobol ESQL) to store and query vector embeddings in PostgreSQL.

    Features

    • COBOL examples for pgvector

      • Sample COBOL code showing how to work with pgvector from COBOL programs.
      • Includes a complete example program (example.cbl).
    • Open Cobol ESQL support

      • Designed to work with Open Cobol ESQL.
      • Uses embedded SQL (EXEC SQL ... END-EXEC) within COBOL.
    • Extension management

      • Example for enabling the vector extension in PostgreSQL:
        • EXEC SQL CREATE EXTENSION IF NOT EXISTS vector END-EXEC.
    • Schema definition for vectors

      • Example of creating a table with a vector column type:
        • EXEC SQL CREATE TABLE items ( id bigserial PRIMARY KEY, embedding vector(3) ) END-EXEC.
      • Demonstrates usage of fixed-dimension vectors (e.g., dimension 3).
    • Inserting vector data

      • Shows how to assign vector values to COBOL variables and insert them into PostgreSQL:
        • Move JSON-like array strings (e.g., "[1,2,3]") into COBOL variables.
        • Insert multiple embeddings into the vector column via embedded SQL.
    • Vector similarity search

      • Example query to retrieve nearest neighbors using pgvector distance operator <->:
        • ORDER BY embedding <-> :EMBEDDING LIMIT 5
      • Demonstrates selecting the nearest item ID into a COBOL variable.
    • Reference example program

      • example.cbl shows end-to-end flow: enabling extension, creating table, inserting vectors, and querying nearest neighbors.
    • Open-source license

      • Released under the MIT license.

    Getting Started

    • Install and configure Open Cobol ESQL.
    • Enable the vector extension in your PostgreSQL database from COBOL using:
      • EXEC SQL CREATE EXTENSION IF NOT EXISTS vector END-EXEC.
    • Follow the README.md and example.cbl in the repository to:
      • Define tables with vector columns.
      • Insert embedding data from COBOL variables.
      • Run nearest neighbor queries with pgvector operators.

    Pricing

    • pgvector-cobol is an open-source project released under the MIT license and is free to use.
    Surveys

    Loading more......

    Information

    Websitegithub.com
    PublishedDec 30, 2025

    Categories

    1 Item
    Sdks & Libraries

    Tags

    3 Items
    #Sdk#Pgvector#vector store

    Similar Products

    6 result(s)
    Milvus Client Libraries

    Official SDK and client libraries for Milvus vector database supporting Python, Java, Go, Node.js, and other languages. Provides simple and intuitive APIs for vector operations, search, and data management across platforms.

    DataRobot Vector Databases (GenAI)

    A premium vector database capability within the DataRobot Generative AI platform that stores chunked unstructured text and their embeddings for retrieval-augmented generation (RAG). Users can create vector database objects, connect supported data sources from the DataRobot Data Registry, configure embeddings and chunking, and attach these vector databases to LLM blueprints in the playground to ground model responses in proprietary data.

    HeatWave

    A feature for MySQL that integrates vector store capabilities, allowing users to store and process vector embeddings for AI applications.

    HNSWlib
    Featured

    Header-only C++/Python library for fast approximate nearest neighbor search implementing the HNSW algorithm. Used by Spotify and others, offers 10x speed increase over Annoy. This is an OSS library.

    AutoTokenizer (Hugging Face Transformers)
    Featured

    A utility class from the Hugging Face Transformers library that automatically loads the correct tokenizer for a given pre-trained model. It is crucial for consistent text preprocessing and tokenization, a vital step before generating embeddings for vector database storage.

    Hannoy

    Graph-based approximate nearest neighbor search library built on LMDB key-value storage. The successor to Arroy, Hannoy combines graph-based ANN algorithms with production-ready persistent storage for vector databases.

    Decorative pattern
    Built with
    Ever Works
    Ever Works

    Connect with us

    Stay Updated

    Get the latest updates and exclusive content delivered to your inbox.

    Product

    • Categories
    • Tags
    • Pricing
    • Help

    Clients

    • Sign In
    • Register
    • Forgot password?

    Company

    • About Us
    • Admin
    • Sitemap

    Resources

    • Blog
    • Submit
    • API Documentation
    All product names, logos, and brands are the property of their respective owners. All company, product, and service names used in this repository, related repositories, and associated websites are for identification purposes only. The use of these names, logos, and brands does not imply endorsement, affiliation, or sponsorship. This directory may include content generated by artificial intelligence.
    Copyright © 2025 Awesome Vector Databases. All rights reserved.·Terms of Service·Privacy Policy·Cookies