Skip to main content

Semantic Vector-Driven LLM Research Engine

Project description

Semantic Vector–Driven LLM Research Engine

Overview

This project is an experimental LLM-based research engine designed to explore how complex questions can be unfolded, examined, and refined through graded semantic vectors rather than rigid pipelines or domain-specific agents.

The core idea is simple:

Instead of hard‑coding logic for each domain, we operate an invariant core that guides inquiry through semantic structure.

This allows the same engine to be applied across regulatory analysis, research, knowledge exploration, or other domains with minimal or no changes to the codebase.


Key Concepts

Semantic Vector Gradation

Requests are not treated as single prompts, but as semantic trajectories that move through different aspects of understanding (e.g. scope, structure, relations, implications).

These semantic vectors:

  • guide how the model explores a question,
  • determine which perspectives are activated,
  • control how results are refined and connected.

The vectors act as directions of attention, not as fixed rules.


Invariant Core

At the heart of the system is an invariant execution core that:

  • remains independent of the application domain,
  • does not encode business logic or regulatory specifics,
  • orchestrates the research cycle purely through semantic control.

This core:

  • manages the inquiry lifecycle,
  • coordinates context expansion and refinement,
  • maintains consistency across iterations.

Domain adaptation happens at the semantic level, not in the engine logic.


Semantic Configuration over Code Changes

Customization is achieved by:

  • adjusting semantic vectors,
  • redefining question perspectives,
  • tuning how concepts are unfolded and connected.

As a result:

  • the same codebase can serve multiple domains,
  • new use cases do not require rewriting agents or pipelines,
  • experimentation focuses on meaning, not mechanics.

Why This Matters

Traditional LLM systems often scale by adding:

  • new agents,
  • new prompt graphs,
  • new domain‑specific pipelines.

This approach quickly leads to:

  • brittle architectures,
  • duplicated logic,
  • exponential maintenance cost.

This project explores an alternative:

A stable, minimal core with flexible semantic optics.

The system evolves by changing how it looks, not how it is built.


Status

This repository represents a research and demonstration prototype. It focuses on:

  • semantic orchestration patterns,
  • invariant LLM execution architecture,
  • exploration of domain‑agnostic research flows.

It is intentionally minimal and exploratory.


Installation

From PyPI (when published)

pip install crystall

From source (development)

git clone https://github.com/coagnes/crystall-sdk.git
cd crystall-sdk
pip install -e ".[dev]"

Quick Usage

from crystall import SpiralBuilder, SparkState

# Create a new spiral
builder = SpiralBuilder()
builder.phase("analyze").base_aspect(my_aspect_factory)

# Build and run
graph = builder.build()
result = await graph.ainvoke(SparkState(intent="Your research query"))

Disclaimer

This project is not a finished product and does not claim production readiness. It is a research artifact intended to explore architectural ideas around LLM‑driven inquiry, semantic control, and maintainable agent systems.


Example

An example of a system run output is available at:

dumps/dialog/1.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crystall-0.1.0.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crystall-0.1.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

Details for the file crystall-0.1.0.tar.gz.

File metadata

  • Download URL: crystall-0.1.0.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for crystall-0.1.0.tar.gz
Algorithm Hash digest
SHA256 58ade73f1f0618d08f7376a7a9116130d7ec72c83b057b93b8df9afd941dac10
MD5 da30b3d9c9d4faf3571723dc8c566bfc
BLAKE2b-256 80c3752f637763a7eb16461752ba2c6640e972f6d62583fa53ae13c4ab8a7645

See more details on using hashes here.

File details

Details for the file crystall-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: crystall-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for crystall-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ab8a54897b3d0db9142512cf857ff3ff5ad1f7073d80e9c103e59a69efe0bba
MD5 2073b791b72619fe9daa286eb3f56cab
BLAKE2b-256 6b0c815280a0967a1395b7708e2917cd1d185dc920fb2c2f6ee3ea5246827853

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page