basic-usage

Store, index, and search documents with LLMemory in Python.

6|1|Updated Aug 11, 2025
One-click install
npx skills add https://github.com/juanre/llmemory --skill basic-usage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: basic-usage
Source: https://github.com/juanre/llmemory/tree/main/skills/basic-usage
Command: npx skills add https://github.com/juanre/llmemory --skill basic-usage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

llmemory basic-usage provides a guided starting point for storing, indexing, and querying documents with a memory-backed, vector-enabled store, enabling developers to prototype and adopt document-centric workflows quickly.

Core Features & Use Cases

  • Install prerequisites and initialize the database, add documents, and perform vector, text, and hybrid searches across tenants.
  • Manage documents and chunks, query with filters, and retrieve metadata for audits and RAG workflows.
  • Use cases include building search-enabled apps, knowledge bases, and multi-tenant document repositories with scalable retrieval.

Quick Start

Install LLMemory in a Python environment, configure a PostgreSQL+pgvector backend, initialize the schema, and begin by adding a document and performing a simple search to validate the setup.

Frequently Asked Questions about basic-usage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I store and search documents using PostgreSQL and pgvector in Python?

You can store and search documents using PostgreSQL and pgvector by installing LLMemory, initializing the schema, adding documents via the add_document API, and executing vector or hybrid searches.

Can I build a multi-tenant document repository with isolated vector search?

Yes, multi-tenant document repositories are supported. You can add, index, and query documents across distinct tenants using vector, text, and hybrid search APIs within your Python application.

How do I perform hybrid search combining semantic vector and text matching?

Hybrid search combines semantic vector and text matching by calling the search API. This allows you to retrieve documents based on both embedding similarity and keyword filters across your stored chunks.

Do I need an external embedding provider to enable semantic search in my document store?

Yes, an external embedding provider is required. Semantic search relies on generating vector embeddings from your documents before storing and querying them in the PostgreSQL database with the pgvector extension.

What Python and PostgreSQL versions are required to set up a vector-enabled document store?

Setting up a vector-enabled document store requires Python 3.10 or higher and PostgreSQL 14 or higher with the pgvector extension installed to support vector indexing and retrieval operations.

How do I retrieve document metadata and statistics for RAG workflow audits?

You can retrieve document metadata and statistics for RAG audits by calling the get_document, list_documents, and get_statistics APIs to query stored chunks and monitor repository usage across tenants.