Delete symbolicai-main/symbolicai-main
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- symbolicai-main/symbolicai-main/.gitbook.yamlDeleted-5
- symbolicai-main/symbolicai-main/.github/FUNDING.ymlDeleted-13
- symbolicai-main/symbolicai-main/.gitignoreDeleted-163
- symbolicai-main/symbolicai-main/.symai/symsh.config.jsonDeleted-16
- symbolicai-main/symbolicai-main/CITATION.cffDeleted-12
- symbolicai-main/symbolicai-main/DockerfileDeleted-49
- symbolicai-main/symbolicai-main/MANIFEST.inDeleted-4
- symbolicai-main/symbolicai-main/README.mdDeleted-371
- symbolicai-main/symbolicai-main/app.pyDeleted-3
- symbolicai-main/symbolicai-main/assets/images/banner.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/cat.jpgDeleted
- symbolicai-main/symbolicai-main/assets/images/cat.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/img1.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/img10.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/img2.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/img3.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/img4.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/img5.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/img6.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/img7.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/img8.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/img9.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/preview.gifDeleted
- symbolicai-main/symbolicai-main/assets/images/screen1.jpegDeleted
- symbolicai-main/symbolicai-main/assets/images/symai_logo.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/symsh.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/vid1.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/vid2.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/vid3.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/vid4.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/vid5.pngDeleted
- symbolicai-main/symbolicai-main/assets/images/vid6.pngDeleted
- symbolicai-main/symbolicai-main/assets/results/news.htmlDeleted-145
- symbolicai-main/symbolicai-main/assets/results/news.pngDeleted
- symbolicai-main/symbolicai-main/assets/results/news_prev.pngDeleted
- symbolicai-main/symbolicai-main/bin/install.ps1Deleted-42
- symbolicai-main/symbolicai-main/bin/install.shDeleted-104
- symbolicai-main/symbolicai-main/build.pyDeleted-562
- symbolicai-main/symbolicai-main/docker-compose.ymlDeleted-13
- symbolicai-main/symbolicai-main/docs/source/ENGINES/clip_engine.mdDeleted-25
- symbolicai-main/symbolicai-main/docs/source/ENGINES/custom_engine.mdDeleted-81
- symbolicai-main/symbolicai-main/docs/source/ENGINES/drawing_engine.mdDeleted-163
- symbolicai-main/symbolicai-main/docs/source/ENGINES/file_engine.mdDeleted-8
- symbolicai-main/symbolicai-main/docs/source/ENGINES/indexing_engine.mdDeleted-22
- symbolicai-main/symbolicai-main/docs/source/ENGINES/local_engine.mdDeleted-125
- symbolicai-main/symbolicai-main/docs/source/ENGINES/neurosymbolic_engine.mdDeleted-353
- symbolicai-main/symbolicai-main/docs/source/ENGINES/ocr_engine.mdDeleted-18
- symbolicai-main/symbolicai-main/docs/source/ENGINES/search_engine.mdDeleted-116
- symbolicai-main/symbolicai-main/docs/source/ENGINES/speech_engine.mdDeleted-10
- symbolicai-main/symbolicai-main/docs/source/ENGINES/symbolic_engine.mdDeleted-21
12345root: symbolicai/docs/source/
structure: readme: INTRODUCTION.md summary: SUMMARY.md12345678910111213# These are supported funding model platforms
github: [extensityAI] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]patreon: # Replace with a single Patreon usernameopen_collective: # Replace with a single Open Collective usernameko_fi: # Replace with a single Ko-fi usernametidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babelcommunity_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundryliberapay: # Replace with a single Liberapay usernameissuehunt: # Replace with a single IssueHunt usernameotechie: # Replace with a single Otechie usernamelfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundrycustom: ['https://www.paypal.com/donate/?hosted_button_id=WCWP5D2QWZXFQ'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163# Byte-compiled / optimized / DLL files__pycache__/*.py[cod]*$py.class
# C extensions*.so
# Distribution / packaging.Pythonbuild/docs/_build/docs/.doctrees/develop-eggs/dist/downloads/eggs/.eggs/lib/lib64/parts/sdist/var/wheels/pip-wheel-metadata/share/python-wheels/*.egg-info/.installed.cfg*.eggMANIFEST
# PyInstaller# Usually these files are written by a python script from a template# before PyInstaller builds the exe, so as to inject date/other infos into it.*.manifest*.spec
# Installer logspip-log.txtpip-delete-this-directory.txt
# Unit test / coverage reportshtmlcov/.tox/.nox/.coverage.coverage.*.cachenosetests.xmlcoverage.xml*.cover*.py,cover.hypothesis/.pytest_cache/
# Translations*.mo*.pot
# Django stuff:*.loglocal_settings.pydb.sqlite3db.sqlite3-journal
# Flask stuff:instance/.webassets-cache
# Scrapy stuff:.scrapy
# Sphinx documentationdocs/_build/
# PyBuildertarget/
# Jupyter Notebook.ipynb_checkpoints
# IPythonprofile_default/ipython_config.py
# pyenv.python-version
# pipenv# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.# However, in case of collaboration, if having platform-specific dependencies or dependencies# having no cross-platform support, pipenv may install dependencies that don't work, or not# install all needed dependencies.#Pipfile.lock
# PEP 582; used by e.g. github.com/David-OConnor/pyflow__pypackages__/
# Celery stuffcelerybeat-schedulecelerybeat.pid
# SageMath parsed files*.sage.py
# Environments.env.venvenv/venv/ENV/env.bak/venv.bak/
# Spyder project settings.spyderproject.spyproject
# Rope project settings.ropeproject
# mkdocs documentation/site
# mypy.mypy_cache/.dmypy.jsondmypy.json
# Pyre type checker.pyre/
results/symai.config.json.DS_Store._.DS_Store**/.DS_Store**/._.DS_Store
# ignore all files in the symai/extended/packages/ directorynotebooks/demos/**/*.virtual_documents/notebooksnotebooks/.virtual_documentsoutputs/demos/wandb/tmp/dist/bin/.ideascriptsSymbolicAI_Installer_**.*entitlements.plistfavicon.icoicon.icoicon.icnsrelease_**/*packages/ExtensityAI/LightRAG-symaisympkgsymsh.bash_history.conversation_state12345678910111213141516{ "colors": { "completion-menu.completion.current": "bg:#323232 #212121", "completion-menu.completion": "bg:#800080 #212121", "scrollbar.background": "bg:#222222", "scrollbar.button": "bg:#776677", "history-completion": "bg:#212121 #f5f5f5", "path-completion": "bg:#800080 #f5f5f5", "file-completion": "bg:#9040b2 #f5f5f5", "history-completion-selected": "bg:#efefef #b3d7ff", "path-completion-selected": "bg:#efefef #b3d7ff", "file-completion-selected": "bg:#efefef #b3d7ff" }, "map-nt-cmd": true, "show-splash-screen": true}123456789101112cff-version: 1.2.0message: "If you use this software, please cite it as below."authors:- family-names: "Dinu" given-names: "Marius-Constantin" orcid: "https://orcid.org/my-orcid?orcid=0000-0002-7518-3337"editors:- family-names: "Leoveanu-Condrei" given-names: "Claudiu"title: "SymbolicAI: A Neuro-Symbolic Perspective on Large Language Models (LLMs)"date-released: 2022-11-30url: "https://github.com/Xpitfire/symbolicai"12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849# syntax=docker/dockerfile:1FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel
LABEL symai.image.authors="extensity.ai" \ symai.image.vendor="ExtensityAI" \ symai.image.title="SymbolicAI" \ symai.image.description="SymbolicAI: Compositional Differentiable Programming Library" \ symai.image.source="https://github.com/ExtensityAI/symbolicai.git" \ symai.image.revision="${VCS_REF}" \ symai.image.created="${BUILD_DATE}" \ symai.image.documentation="https://symbolicai.readthedocs.io/en/latest/README.html"LABEL symai.dependencies.versions.torch="2.0.1"LABEL symai.dependencies.versions.cuda="11.7"ARG DEBIAN_FRONTEND=noninteractive
# NVIDIA key migrationRUN apt-key del 7fa2af80RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pubRUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64/7fa2af80.pub# Update the base imageRUN apt update && apt upgrade -y
# Install symai
## Install dependenciesRUN apt install -y curl sudo nano git htop netcat wget unzip tmux apt-utils cmake build-essential libgl1-mesa-glx libglib2.0-0
## Upgrade pipRUN pip3 install --upgrade pip
# Install nvm and pm2RUN curl -o install_nvm.sh https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh && \ echo 'fabc489b39a5e9c999c7cab4d281cdbbcbad10ec2f8b9a7f7144ad701b6bfdc7 install_nvm.sh' | sha256sum --check && \ bash install_nvm.sh
RUN bash -c "source $HOME/.nvm/nvm.sh && \ # use node 16 nvm install 16 && \ # install pm2 npm install --location=global pm2"
RUN mkdir -p /root/.symai/installCOPY . /root/.symai/installRUN cd /root/.symai/install && python3 -m pip install ".[all]"
# Increase ulimit to 1,000,000RUN prlimit --pid=$PPID --nofile=1000000
EXPOSE 89991234global-exclude test_*.pyinclude symai/**/*include symai/backend/driver/*exclude **/*.pyc123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371# **SymbolicAI: A neuro-symbolic perspective on LLMs**<img src="https://raw.githubusercontent.com/ExtensityAI/symbolicai/refs/heads/main/assets/images/banner.png">
<div align="center">
[](https://extensityai.gitbook.io/symbolicai)[](https://arxiv.org/abs/2402.00854)[](https://deepwiki.com/ExtensityAI/symbolicai)
[](https://twitter.com/DinuMariusC) [](https://twitter.com/ExtensityAI)[](https://x.com/futurisold)
</div>
---
<img src="https://raw.githubusercontent.com/ExtensityAI/symbolicai/main/assets/images/preview.gif">
## What is SymbolicAI?
SymbolicAI is a **neuro-symbolic** framework, combining classical Python programming with the differentiable, programmable nature of LLMs in a way that actually feels natural in Python.It's built to not stand in the way of your ambitions.It's easily extensible and customizable to your needs by virtue of its modular design.It's quite easy to [write your own engine](https://extensityai.gitbook.io/symbolicai/engines/custom_engine), [host locally](https://extensityai.gitbook.io/symbolicai/engines/local_engine) an engine of your choice, or interface with tools like [web search](https://extensityai.gitbook.io/symbolicai/engines/search_engine) or [image generation](https://extensityai.gitbook.io/symbolicai/engines/drawing_engine).To keep things concise in this README, we'll introduce two key concepts that define SymbolicAI: **primitives** and **contracts**.
### PrimitivesAt the core of SymbolicAI are `Symbol` objects—each one comes with a set of tiny, composable operations that feel like native Python.```pythonfrom symai import Symbol```
`Symbol` comes in **two flavours**:
1. **Syntactic** – behaves like a normal Python value (string, list, int ‐ whatever you passed in).2. **Semantic** – is wired to the neuro-symbolic engine and therefore *understands* meaning and context.
Why is syntactic the default?Because Python operators (`==`, `~`, `&`, …) are overloaded in `symai`.If we would immediately fire the engine for *every* bitshift or comparison, code would be slow and could produce surprising side-effects.Starting syntactic keeps things safe and fast; you opt-in to semantics only where you need them.
#### How to switch to the semantic view
1. **At creation time**
```python S = Symbol("Cats are adorable", semantic=True) # already semantic print("feline" in S) # => True ```
2. **On demand with the `.sem` projection** – the twin `.syn` flips you back:
```python S = Symbol("Cats are adorable") # default = syntactic print("feline" in S.sem) # => True print("feline" in S) # => False ```
3. Invoking **dot-notation operations**—such as `.map()` or any other semantic function—automatically switches the symbol to semantic mode:
```python S = Symbol(['apple', 'banana', 'cherry', 'cat', 'dog']) print(S.map('convert all fruits to vegetables')) # => ['carrot', 'broccoli', 'spinach', 'cat', 'dog'] ```
Because the projections return the *same underlying object* with just a different behavioural coat, you can weave complex chains of syntactic and semantic operations on a single symbol. Think of them as your building blocks for semantic reasoning. Right now, we support a wide range of primitives; check out the docs [here](https://extensityai.gitbook.io/symbolicai/features/primitives), but here's a quick snack:
| Primitive/Operator | Category | Syntactic | Semantic | Description ||--------------------|-----------------|:---------:|:--------:|-------------|| `==` | Comparison | ✓ | ✓ | Tests for equality. Syntactic: literal match. Semantic: fuzzy/conceptual equivalence (e.g. 'Hi' == 'Hello'). || `+` | Arithmetic | ✓ | ✓ | Syntactic: numeric/string/list addition. Semantic: meaningful composition, blending, or conceptual merge. || `&` | Logical/Bitwise | ✓ | ✓ | Syntactic: bitwise/logical AND. Semantic: logical conjunction, inference, e.g., context merge. || `symbol[index] = value` | Iteration | ✓ | ✓ | Set item or slice. || `.startswith(prefix)` | String Helper | ✓ | ✓ | Check if a string starts with given prefix (in both modes). || `.choice(cases, default)` | Pattern Matching| | ✓ | Select best match from provided cases. || `.foreach(condition, apply)`| Execution Control | | ✓ | Apply action to each element. || `.cluster(**clustering_kwargs?)` | Data Clustering | | ✓ | Cluster data into groups semantically. (uses sklearn's DBSCAN)|| `.similarity(other, metric?, normalize?)` | Embedding | | ✓ | Compute similarity between embeddings. || ... | ... | ...| ... | ... |
### Contracts
They say LLMs hallucinate—but your code can't afford to. That's why SymbolicAI brings **Design by Contract** principles into the world of LLMs. Instead of relying solely on post-hoc testing, contracts help build correctness directly into your design, everything packed into a decorator that will operate on your defined data models and validation constraints:```pythonfrom symai import Expressionfrom symai.strategy import contractfrom symai.models import LLMDataModel # Compatible with Pydantic's BaseModelfrom pydantic import Field, field_validator
# ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬# Data models ▬# – clear structure + rich Field descriptions power ▬# validation, automatic prompt templating & remedies ▬# ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬class DataModel(LLMDataModel): some_field: some_type = Field(description="very descriptive field", and_other_supported_options_here="...")
@field_validator('some_field') def validate_some_field(cls, v): # Custom basic validation logic can be added here too besides pre/post valid_opts = ['A', 'B', 'C'] if v not in valid_opts: raise ValueError(f'Must be one of {valid_opts}, got "{v}".') return v
# ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬# The contracted expression class ▬# ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬@contract( # ── Remedies ─────────────────────────────────────────── # pre_remedy=True, # Try to fix bad inputs automatically post_remedy=True, # Try to fix bad LLM outputs automatically accumulate_errors=True, # Feed history of errors to each retry verbose=True, # Nicely displays progress in terminal remedy_retry_params=dict(tries=3, delay=0.4, max_delay=4.0, jitter=0.15, backoff=1.8, graceful=False),)class Agent(Expression): # # High-level behaviour: # *. `prompt` – a *static* description of what the LLM must do (mandatory) # 1. `pre` – sanity-check inputs (optional) # 2. `act` – mutate state (optional) # 3. LLM – generate expected answer (handled by SymbolicAI engine) # 4. `post` – ensure answer meets semantic rules (optional) # 5. `forward` (mandatory) # • if contract succeeded → return type validated LLM object # • else → graceful fallback answer # ...```
Because we don't want to bloat this README file with long Python snippets, learn more about contracts [here](https://deepwiki.com/ExtensityAI/symbolicai/7.1-contract-validation-system) and [here](https://extensityai.gitbook.io/symbolicai/features/contracts).
## Installation
### Core Features
To get started with SymbolicAI, you can install it using pip:
```bashpip install symbolicai```
#### Setting up a neurosymbolic API Key
Before using SymbolicAI, you need to set up API keys for the various engines. Currently, SymbolicAI supports the following neurosymbolic engines through API: OpenAI, Anthropic. We also support {doc}`local neurosymbolic engines <ENGINES/local_engine>`, such as llama.cpp and huggingface.
```bash# Linux / MacOSexport NEUROSYMBOLIC_ENGINE_API_KEY="…"export NEUROSYMBOLIC_ENGINE_MODEL="…"```
```bash# Windows (PowerShell)$Env:NEUROSYMBOLIC_ENGINE_API_KEY="…"$Env:NEUROSYMBOLIC_ENGINE_MODEL="…"```
```bash# Jupyter Notebooks%env NEUROSYMBOLIC_ENGINE_API_KEY=…%env NEUROSYMBOLIC_ENGINE_MODEL=…```
#### Optional Features
SymbolicAI uses multiple engines to process text, speech and images. We also include search engine access to retrieve information from the web. To use all of them, you will need to also install the following dependencies and assign the API keys to the respective engines.
```bashpip install "symbolicai[wolframalpha]"pip install "symbolicai[whisper]"pip install "symbolicai[selenium]"pip install "symbolicai[serpapi]"pip install "symbolicai[pinecone]"```
Or, install all optional dependencies at once:
```bashpip install "symbolicai[all]"```
And export the API keys, for example:
```bash# Linux / MacOSexport SYMBOLIC_ENGINE_API_KEY="<WOLFRAMALPHA_API_KEY>"export SEARCH_ENGINE_API_KEY="<SERP_API_KEY>"export OCR_ENGINE_API_KEY="<APILAYER_API_KEY>"export INDEXING_ENGINE_API_KEY="<PINECONE_API_KEY>"
# Windows (PowerShell)$Env:SYMBOLIC_ENGINE_API_KEY="<WOLFRAMALPHA_API_KEY>"$Env:SEARCH_ENGINE_API_KEY="<SERP_API_KEY>"$Env:OCR_ENGINE_API_KEY="<APILAYER_API_KEY>"$Env:INDEXING_ENGINE_API_KEY="<PINECONE_API_KEY>"```
See below for the entire list of keys that can be set via environment variables or a configuration file.
#### Additional Requirements
**SpeechToText Engine**: Install `ffmpeg` for audio processing (based on OpenAI's [whisper](https://openai.com/blog/whisper/))
```bash# Linuxsudo apt update && sudo apt install ffmpeg
# MacOSbrew install ffmpeg
# Windowschoco install ffmpeg```
**WebCrawler Engine**: For `selenium`, we automatically install the driver with `chromedriver-autoinstaller`. Currently we only support Chrome as the default browser.
## Configuration Management
SymbolicAI now features a configuration management system with priority-based loading. The configuration system looks for settings in three different locations, in order of priority:
1. **Debug Mode** (Current Working Directory) - Highest priority - Only applies to `symai.config.json` - Useful for development and testing
2. **Environment-Specific Config** (Python Environment) - Second priority - Located in `{python_env}/.symai/` - Ideal for project-specific settings
3. **Global Config** (Home Directory) - Lowest priority - Located in `~/.symai/` - Default fallback for all settings
### Configuration Files
The system manages three main configuration files:- `symai.config.json`: Main SymbolicAI configuration- `symsh.config.json`: Shell configuration- `symserver.config.json`: Server configuration
### Viewing Your Configuration
Before using the package, we recommend inspecting your current configuration setup using the command below. This will create all the necessary configuration files.
```bashsymconfig```
This command will show:- All configuration locations- Active configuration paths- Current settings (with sensitive data truncated)
### Configuration Priority Example
```consolemy_project/ # Debug mode (highest priority)└── symai.config.json # Only this file is checked in debug mode
{python_env}/.symai/ # Environment config (second priority)├── symai.config.json├── symsh.config.json└── symserver.config.json
~/.symai/ # Global config (lowest priority)├── symai.config.json├── symsh.config.json└── symserver.config.json```
If a configuration file exists in multiple locations, the system will use the highest-priority version. If the environment-specific configuration is missing or invalid, the system will automatically fall back to the global configuration in the home directory.
### Best Practices
- Use the global config (`~/.symai/`) for your default settings- Use environment-specific configs for project-specific settings- Use debug mode (current directory) for development and testing- Run `symconfig` to inspect your current configuration setup
This addition to the README clearly explains:1. The priority-based configuration system2. The different configuration locations and their purposes3. How to view and manage configurations4. Best practices for configuration management
### Configuration File
You can specify engine properties in a `symai.config.json` file in your project path. This will replace the environment variables.Example of a configuration file with all engines enabled:```json{ "NEUROSYMBOLIC_ENGINE_API_KEY": "<OPENAI_API_KEY>", "NEUROSYMBOLIC_ENGINE_MODEL": "gpt-4o", "SYMBOLIC_ENGINE_API_KEY": "<WOLFRAMALPHA_API_KEY>", "SYMBOLIC_ENGINE": "wolframalpha", "EMBEDDING_ENGINE_API_KEY": "<OPENAI_API_KEY>", "EMBEDDING_ENGINE_MODEL": "text-embedding-3-small", "SEARCH_ENGINE_API_KEY": "<PERPLEXITY_API_KEY>", "SEARCH_ENGINE_MODEL": "sonar", "TEXT_TO_SPEECH_ENGINE_API_KEY": "<OPENAI_API_KEY>", "TEXT_TO_SPEECH_ENGINE_MODEL": "tts-1", "INDEXING_ENGINE_API_KEY": "<PINECONE_API_KEY>", "INDEXING_ENGINE_ENVIRONMENT": "us-west1-gcp", "DRAWING_ENGINE_API_KEY": "<OPENAI_API_KEY>", "DRAWING_ENGINE_MODEL": "dall-e-3", "VISION_ENGINE_MODEL": "openai/clip-vit-base-patch32", "OCR_ENGINE_API_KEY": "<APILAYER_API_KEY>", "SPEECH_TO_TEXT_ENGINE_MODEL": "turbo", "SUPPORT_COMMUNITY": true}```
With these steps completed, you should be ready to start using SymbolicAI in your projects.
> ❗️**NOTE**❗️Our framework allows you to support us train models for local usage by enabling the data collection feature. On application startup we show the terms of services and you can activate or disable this community feature. We do not share or sell your data to 3rd parties and only use the data for research purposes and to improve your user experience. To change this setting open the `symai.config.json` and turn it on/off by setting the `SUPPORT_COMMUNITY` property to `True/False` via the config file or the respective environment variable.
> ❗️**NOTE**❗️By default, the user warnings are enabled. To disable them, export `SYMAI_WARNINGS=0` in your environment variables.
### Running testsSome examples of running tests locally:```bash# Run all testspytest tests# Run mandatory testspytest -m mandatory```Be sure to have your configuration set up correctly before running the tests. You can also run the tests with coverage to see how much of the code is covered by tests:```bashpytest --cov=symbolicai tests```
## 🪜 Next Steps
Now, there are tools like DeepWiki that provide better documentation than we could ever write, and we don’t want to compete with that; we'll correct it where it's plain wrong. Please go read SymbolicAI's DeepWiki [page](https://deepwiki.com/ExtensityAI/symbolicai/). There's a lot of interesting stuff in there. Last but not least, check out our [paper](https://arxiv.org/abs/2402.00854) that describes the framework in detail. If you like watching videos, we have a series of tutorials that you can find [here](https://extensityai.gitbook.io/symbolicai/tutorials/video_tutorials).
## 📜 Citation
```bibtex@software{Dinu_SymbolicAI_2022, author = {Dinu, Marius-Constantin}, editor = {Leoveanu-Condrei, Claudiu}, title = {{SymbolicAI: A Neuro-Symbolic Perspective on Large Language Models (LLMs)}}, url = {https://github.com/ExtensityAI/symbolicai}, month = {11}, year = {2022}}```
## 📝 License
This project is licensed under the BSD-3-Clause License - refer to [the docs](https://symbolicai.readthedocs.io/en/latest/LICENSE.html).
## Like this Project?
If you appreciate this project, please leave a star ⭐️ and share it with friends and colleagues. To support the ongoing development of this project even further, consider donating. Thank you!
[](https://www.paypal.com/donate/?hosted_button_id=WCWP5D2QWZXFQ)
We are also seeking contributors or investors to help grow and support this project. If you are interested, please reach out to us.
## 📫 Contact
Feel free to contact us with any questions about this project via [email](mailto:office@extensity.ai), through our [website](https://extensity.ai/), or find us on Discord:[](https://discord.gg/QYMNnh9ra8)123from symai import shell
shell.run()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>News</title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <style> body { background: #212529; color: #fff; font-family: "Arial", sans-serif; font-size: 1.2rem; } h1 { text-align: center; } </style> </head> <body> <h1>News Headlines</h1> <div class="container"> <p class="font-weight-bold text-primary">Cybersecurity Consolidation and the Equifax Settlement</p> <p>The upcoming year is likely to see a wave of cybersecurity consolidation, according to Jay Chaudhry, the CEO of Zscaler. This could be a major boon for stocks with high profit margins, which may rally by more than 50%. Consumers may also benefit from the Equifax settlement, receiving payments to help protect their online identities.</p> <p>However, it is important to understand the risks associated with using password managers to protect your online identity. Password managers can be a useful tool, but they can also create a single point of failure, meaning if someone were to gain access to your password manager, they would have access to all of your passwords. Therefore, it is important to do your research before deciding to use one.</p> <h2 class="text-success font-weight-bold">Other headlines</h2> <ul class="list-group"> <li class="list-group-item list-group-item-primary">Rch downgraded Palantir, suggesting that its stock could drop below $5. This news followed the arrest of two New York men for conspiring to hack the JFK taxi dispatch system.</li> <li class="list-group-item list-group-item-primary">Tech executives are prioritizing cloud computing and security, with CAPTCHA being used by Google and e-commerce businesses to battle bots.</li> <li class="list-group-item list-group-item-primary">The FBI is concerned about a crime wave against small businesses, and has released information about how much money is being lost as a result.</li> <li class="list-group-item list-group-item-primary">Quiet hiring is on the rise in the tech industry, as tech companies are looking to stealthily acquire top talent.</li> <li class="list-group-item list-group-item-primary">China is a major risk for companies operating in the US, as the US-China trade war is showing no signs of abating.</li> <li class="list-group-item list-group-item-primary">Tech execs are spending more, with the latest survey showing that spending on tech is increasing year-over-year.</li> <li class="list-group-item list-group-item-primary">FuboTV suffered a major cyberattack, with hackers gaining access to user data and bank accounts.</li> <li class="list-group-item list-group-item-primary">Cloudflare has recently reported strong cash flow, indicating that the cloud security firm is in a good position.</li> <li class="list-group-item list-group-item-primary">The White House is focusing on cybersecurity, with the President signing an executive order that outlines the government's commitment to cybersecurity.</li> <li class="list-group-item list-group-item-primary">LinkedIn is taking steps to combat fake accounts, with the social media giant introducing new measures to detect and remove fraudulent accounts.</li> <li class="list-group-item list-group-item-primary">Huawei is facing more licensing issues, with the US government continuing to pressure the Chinese tech giant.</li> <li class="list-group-item list-group-item-primary">TikTok is facing scrutiny over its data privacy practices, with the US government expressing serious concerns.</li> <li class="list-group-item list-group-item-primary">SentinelOne is reporting strong profitability, with the cybersecurity firm posting impressive results in the third quarter.</li> <li class="list-group-item list-group-item-primary">A new chip firm based in the US and the Netherlands has been announced, indicating that chipmakers are looking to diversify their operations.</li> <li class="list-group-item list-group-item-primary">CrowdStrike's stock is soaring, with the cyber security firm's stock price rising over 30% in the past month.</li> </ul> </div><div class="container"> <h3 class="mb-2" style="font-weight: bold; font-size: larger; color: #1E90FF; animation: highlight-text 2s linear infinite;"><strong>Technology Executives Council's Opening Keynote on Dec 12, 2022</strong></h3> <p style="font-size: small; color: #3C3C3C; animation: highlight-text 2s linear infinite;">The Technology Executive Council's opening keynote on Monday, December 12th 2022, will discuss the intersection of finance, technology and national security. A few days prior, on Saturday, December 10th 2022, a Cyber Report was released noting that LinkedIn has a problem with fake accounts and is actively trying to fix it. On Sunday, December 11th 2022, Huawei announced that it had licensed 5G patents to a rival as U.S. sanctions have forced the Chinese giant to seek out new revenue.</p> <h3 class="mb-2" style="font-weight: bold; font-size: larger; color: #1E90FF; animation: highlight-text 2s linear infinite;"><strong>Other News</strong></h3> <ul class="list-group" style="font-size: small; color: #3C3C3C; animation: highlight-text 2s linear infinite;"> <li class="list-group-item">On Thursday, December 8th 2022, a number of states took action against TikTok over data privacy concerns.</li> <li class="list-group-item">The following Wednesday, December 7th 2022, SentinelOne's CEO announced that the company was aiming to be profitable by FY25.</li> <li class="list-group-item">Tuesday, December 6th 2022, saw a globally critical chip firm creating a wedge between the United States and the Netherlands.</li> <li class="list-group-item">In the U.S., a look at what it takes to be considered middle class in 20 major cities.</li> <li class="list-group-item">Russia has blamed cellphones for a deadly attack in Makiivka, and President Putin has sent hypersonic cruise missiles to the Atlantic.</li> <li class="list-group-item">The U.S. could see a shift to "quiet hiring" in 2023, while the Mega Millions jackpot is now at $785 million.</li> <li class="list-group-item">China is posing a risk to American tech giants Tesla and Apple, and small business owners should take steps to protect themselves from hackers.</li> <li class="list-group-item">Tech executives are signaling that spending will increase in 2023, despite massive layoffs in the sector.</li> <li class="list-group-item">This was followed by a cyberattack on FuboTV during a World Cup semifinal match.</li> <li class="list-group-item">Cloudflare CEO Matthew Prince has stated that annual plans allow the company to have more free cash flow up-front.</li> <li class="list-group-item">The closing keynote addressed the White House's seriousness about cybersecurity, while the increase in Gmail spam regarding Yeti coolers was explained.</li> </ul> </div><div class="container"> <div class="row"> <div class="col-md-6"> <h2 class="mb-3 animated pulse">CrowdStrike Stock</h2> <p class="animated pulse">Wednesday, November 30th 2022, saw CrowdStrike stock go down on earnings, but Morgan Stanley advised to buy the dip.</p> </div> <div class="col-md-6"> <h2 class="mb-3 animated pulse">Fitness Trackers</h2> <p class="animated pulse">Monday, November 28th 2022, a discussion was held on the biggest risks of utilizing fitness trackers to monitor health.</p> </div> </div> <div class="row"> <div class="col-md-6"> <h2 class="mb-3 animated pulse">Tom Lee on Bitcoin</h2> <p class="animated pulse">Friday, November 25th 2022, Fundstrat's Tom Lee spoke about how Bitcoin still makes sense for certain investors, and the same day the new iPhone 14 and iOS upgrade was released, including significant changes to cybersecurity.</p> </div> <div class="col-md-6"> <h2 class="mb-3 animated pulse">Chainalysis CEO</h2> <p class="animated pulse">On Tuesday, November 22nd 2022, Chainalysis' CEO Michael Gronager spoke about protecting customers from bad actors in the crypto space.</p> </div> </div> <div class="row"> <div class="col-md-6"> <h2 class="mb-3 animated pulse">DraftKings</h2> <p class="animated pulse">Monday, November 21st 2022, DraftKings declared that there was no evidence that their systems had been breached following a report of a hack. On the same day, a discussion was held on how BlackBerry had moved away from their iconic cellphones to focus on cybersecurity.</p> </div> <div class="col-md-6"> <h2 class="mb-3 animated pulse">Cohesity CEO</h2> <p class="animated pulse">Friday, November 18th 2022, Cohesity's CEO Sanjay Poonen discussed how cloud, data and security remain strong for software.</p> </div> </div> <div class="row"> <div class="col-md-6"> <h2 class="mb-3 animated pulse">White House Cybersecurity Team</h2> <p class="animated pulse">Sunday, November 20th 2022, the White House's cybersecurity team discussed the potential threat posed by China's TikTok.</p> </div> <div class="col-md-6"> <h2 class="mb-3 animated pulse">Palo Alto's Overtime</h2> <p class="animated pulse">Finally, on Friday, November 25th 2022, Palo Alto's Overtime was discussed.</p> </div> </div> <div class="row"> <div class="col-md-12"> <h2 class="mb-3 animated pulse">Beats Acquisition (BA)</h2> <p class="animated pulse">Beats recently announced that it had exceeded fourth quarter earnings estimates and that it had agreed to acquire Cider Security. As part of its ongoing expansion, Beats has also recently added CNBC on Peacock with an exclusive CNBC Panel.</p> <p>In addition to its digital products, Beats also offers news releases, closed captioning, corrections, and information about CNBC, internships, and its site map. Beats also provides users with ad choices, career opportunities, help, and contact news tips.</p> <p>Beats provides a great way for users to stay informed about the latest news and technology trends.</p> </div> </div> </div><ul> <li>Advertise with us</li> <li>Access real-time snapshot global business and financial news</li> <li>Stock quotes</li> <li>Market data and analysis</li></ul>
Using the Bootstrap library, the content can be styled as follows:
<p><strong>We offer the following opportunities:</strong></p>
<ul> <li><span class="highlight-animation">Advertise with us</span></li> <li><span class="highlight-animation">Access real-time snapshot global business and financial news</span></li> <li><span class="highlight-animation">Stock quotes</span></li> <li><span class="highlight-animation">Market data and analysis</span></li></ul>
<style> .highlight-animation { color: #0077b5; font-weight: bold; transition: 0.3s; }
.highlight-animation:hover { color: #1e90ff; }</style> </body></html>123456789101112131415161718192021222324252627282930313233343536373839404142# Check if Git is installedif (-not (Get-Command git -ErrorAction SilentlyContinue)) { # Download Git from the official site and install Invoke-WebRequest -Uri "https://github.com/git-for-windows/git/releases/download/v2.31.0.windows.1/Git-2.31.0-64-bit.exe" -OutFile "$env:TEMP\Git-2.31.0-64-bit.exe" Start-Process "$env:TEMP\Git-2.31.0-64-bit.exe" -ArgumentList "/VERYSILENT" -Wait}
# Check if Anaconda installedif (-not (Get-Command conda -ErrorAction SilentlyContinue)) { # Download Anaconda from the official site and install Invoke-WebRequest -Uri "https://repo.anaconda.com/archive/Anaconda3-2023.03-1-Windows-x86_64.exe" -OutFile "$env:TEMP\Anaconda3-2023.03-1-Windows-x86_64.exe" Start-Process "$env:TEMP\Anaconda3-2023.03-1-Windows-x86_64.exe" -ArgumentList "/InstallationType=JustMe /AddToPath=0 /RegisterPython=0 /S" -Wait}
# Source conda$env:Path = "$env:USERPROFILE\Anaconda3\Scripts;" + $env:Path
# Create conda environment named symenvconda create --name symenv -y
# Install Jupyter Notebook using condaconda install -n symenv jupyter -y
# Activate the conda environmentconda activate symenv
# Install symbolicai using pip that comes with the Anaconda environment& "$env:USERPROFILE\Anaconda3\envs\symenv\Scripts\pip" install symbolicai
# Set up an ipython configurationif (!(Test-Path -Path "$env:USERPROFILE\.ipython\profile_default\startup")) { New-Item -ItemType directory -Path "$env:USERPROFILE\.ipython\profile_default\startup"}Add-Content "$env:USERPROFILE\.ipython\profile_default\startup\startup.py" "from symai import *; from symai.extended.conversation import Conversation; q = Conversation(auto_print=True)"
# Create a shortcut for the ipython console on Desktop$Shortcut = (New-Object -ComObject WScript.Shell).CreateShortcut("$([Environment]::GetFolderPath('Desktop'))\SymbolicAI.lnk")$Shortcut.TargetPath = "powershell.exe"$Shortcut.WorkingDirectory = "" # set this to the intended starting directory$command = '-ExecutionPolicy Bypass -NoExit -Command . "$env:USERPROFILE\Anaconda3\envs\symenv\Scripts\ipython.exe"'$Shortcut.Arguments = $command$Shortcut.Save()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104#!/bin/bash# Check if git is installedif ! command -v git &> /dev/nullthen # Install git if [ "$(uname)" == "Darwin" ]; then # MacOS /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" brew install git elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then # Linux sudo apt-get install git -y fifi
# Check if Anaconda and git are installedif ! command -v conda &> /dev/nullthen # Check the OS to download the appropriate version of Anaconda if [ "$(uname)" == "Darwin" ]; then # MacOS if [ "$(uname -m)" == "x86_64" ]; then # Intel Mac curl -O https://repo.anaconda.com/archive/Anaconda3-2023.03-1-MacOSX-x86_64.sh bash Anaconda3-2023.03-1-MacOSX-x86_64.sh -b else # Apple Silicon Mac curl -O https://repo.anaconda.com/archive/Anaconda3-2023.03-1-MacOSX-arm64.sh bash Anaconda3-2023.03-1-MacOSX-arm64.sh -b fi elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then # Linux wget https://repo.anaconda.com/archive/Anaconda3-2023.03-1-Linux-x86_64.sh bash Anaconda3-2023.03-1-Linux-x86_64.sh -b fifi
# Initialize Anaconda3# Skip initialization if already initializedif [ -z "$(conda info --envs)" ]then eval "$(conda shell.bash hook)"fi
# Source condasource ~/anaconda3/etc/profile.d/conda.sh
# Create conda environment named symaiconda create --name symenv -y
# Install Jupyter Notebook using condaconda install -n symenv jupyter -y
# Activate the conda environmentconda activate symenv
# Install symbolicai using pip that comes with the Anaconda environment~/anaconda3/envs/symenv/bin/pip install symbolicai
# Install ipython configurationmkdir -p ~/.ipython/profile_default/startupecho "from symai import *; from symai.extended.conversation import Conversation; q = Conversation(auto_print=True)" > ~/.ipython/profile_default/startup/startup.py
# Create a desktop icon on Linuxif [ "$(uname)" == "Darwin" ]; then # MacOS # Generate open-terminal-and-run script echo "#!/bin/bash open -a Terminal.app ~/anaconda3/envs/symenv/bin/ipython" > SymbolicAI.app
# Make the generated script executable chmod +x SymbolicAI.app
# Move the script to the Applications directory mv SymbolicAI.app /Applications/SymbolicAI.app
# Generate an Automator application that runs the script echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"> <plist version=\"1.0\"> <dict> <key>Label</key> <string>com.user.loginscript</string> <key>ProgramArguments</key> <array> <string>/Applications/SymbolicAI.app</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>" > ~/Library/LaunchAgents/com.user.loginscript.plistelif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then # Linux echo "[Desktop Entry] Version=1.0 Type=Application Name=Sym AI Icon=terminal Exec=bash -c 'source ~/anaconda3/bin/activate symenv && ipython' Terminal=true" > ~/Desktop/symai.desktop
# Make the desktop file executable chmod +x ~/Desktop/symai.desktopfi123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562# build.pyimport osimport platformimport shutilimport subprocessimport sysfrom typing import Optional
class BuildConfig: def __init__(self): self.system = platform.system() self.machine = platform.machine() self.arch = self._determine_arch()
def _determine_arch(self) -> str: if self.machine == 'arm64' or self.machine == 'aarch64': return 'arm64' elif self.machine == 'x86_64' or self.machine == 'AMD64': return 'x86_64' else: raise ValueError(f"Unsupported architecture: {self.machine}")
@property def is_apple_silicon(self) -> bool: return self.system == 'Darwin' and self.arch == 'arm64'
# Add this function to build.pydef create_info_plist(app_dir: str, target_arch: str): """Create Info.plist file for macOS app bundle.""" info_plist = f"""<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>CFBundleDisplayName</key> <string>SymbolicAI Installer</string> <key>CFBundleExecutable</key> <string>SymbolicAI_Installer</string> <key>CFBundleIconFile</key> <string>icon.icns</string> <key>CFBundleIdentifier</key> <string>com.symbolicai.installer</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>SymbolicAI Installer</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>1.0.0</string> <key>LSMinimumSystemVersion</key> <string>10.15.0</string> <key>NSHighResolutionCapable</key> <true/> <key>NSRequiresAquaSystemAppearance</key> <false/></dict></plist>""" plist_path = os.path.join(app_dir, 'Contents', 'Info.plist') with open(plist_path, 'w') as f: f.write(info_plist)
def create_spec_file(target_arch: str) -> str: """Create a spec file for the target architecture.""" spec_content = f"""# -*- mode: python ; coding: utf-8 -*-import sysimport osimport customtkinterfrom PyInstaller.utils.hooks import collect_all
block_cipher = None
# Collect all necessary packagescts = collect_all('customtkinter')
a = Analysis( ['installer.py'], pathex=[], binaries=[], datas=[ *cts[0], # Binaries *cts[1], # Datas ], hiddenimports=[*cts[2]], # Hidden imports hookspath=[], hooksconfig={{}}, runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher, noarchive=False, target_arch='{target_arch}')
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
if sys.platform == 'darwin': exe = EXE( pyz, a.scripts, [], exclude_binaries=True, name='SymbolicAI_Installer', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, console=False, disable_windowed_traceback=False, target_arch='{target_arch}', codesign_identity=None, entitlements_file=None, icon='icon.icns' )
# Bundle everything into the app app = BUNDLE( exe, a.binaries, a.zipfiles, a.datas, name='SymbolicAI_Installer-{target_arch}.app', icon='icon.icns', bundle_identifier='com.symbolicai.installer', info_plist={{ 'CFBundleShortVersionString': '1.0.0', 'LSMinimumSystemVersion': '10.15.0', 'NSHighResolutionCapable': True, 'NSRequiresAquaSystemAppearance': False, }}, )else: exe = EXE( pyz, a.scripts, a.binaries, a.zipfiles, a.datas, [], name='SymbolicAI_Installer', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, upx_exclude=[], runtime_tmpdir=None, console=False, disable_windowed_traceback=False, target_arch='{target_arch}', codesign_identity=None, entitlements_file=None, icon='icon.ico' if sys.platform == 'win32' else None )""" spec_file = f'installer_{target_arch}.spec' with open(spec_file, 'w') as f: f.write(spec_content) return spec_file
def clean_build_dirs(): """Clean up build directories.""" dirs_to_clean = ['build', 'dist'] for dir_name in dirs_to_clean: if os.path.exists(dir_name): shutil.rmtree(dir_name)
def ensure_icons(): """Ensure icons are available before building.""" if not os.path.exists('icon_converter.py'): raise FileNotFoundError("icon_converter.py not found!") subprocess.check_call(['python', 'icon_converter.py'])
def verify_executable_format(executable_path: str, target_arch: str): """Verify the format of the executable.""" try: output = subprocess.check_output(['file', executable_path], text=True) print(f"Executable format: {output.strip()}")
if target_arch == 'x86_64': if 'x86_64' not in output: print(f"Warning: Executable {executable_path} is not in x86_64 format") return False elif target_arch == 'arm64': if 'arm64' not in output: print(f"Warning: Executable {executable_path} is not in arm64 format") return False return True except subprocess.CalledProcessError as e: print(f"Error checking executable format: {str(e)}") return False
def verify_binary_architecture(binary_path: str, expected_arch: str): """Verify the architecture of a binary.""" try: output = subprocess.check_output(['lipo', '-info', binary_path], text=True) if expected_arch not in output: print(f"Warning: Binary {binary_path} does not contain {expected_arch} architecture") print(f"Architecture info: {output.strip()}") return False return True except subprocess.CalledProcessError as e: print(f"Error checking architecture: {str(e)}") return False
def verify_mac_app(app_path: str): """Verify the macOS app bundle.""" try: # Verify bundle structure required_paths = [ 'Contents/Info.plist', 'Contents/MacOS/SymbolicAI_Installer', 'Contents/Resources/icon.icns' ]
for path in required_paths: full_path = os.path.join(app_path, path) if not os.path.exists(full_path): print(f"Warning: Missing {path}")
# Verify signing of all components try: print("\nVerifying code signing:") subprocess.check_call(['codesign', '--verify', '--verbose=4', app_path]) print("Main bundle verification successful")
# Verify all binaries in the bundle for root, _, files in os.walk(app_path): for file in files: file_path = os.path.join(root, file) try: output = subprocess.check_output(['file', file_path], text=True) if 'Mach-O' in output: subprocess.check_call(['codesign', '--verify', file_path]) print(f"Verified: {os.path.relpath(file_path, app_path)}") except subprocess.CalledProcessError: print(f"Warning: Signature verification failed for {file_path}") except Exception: continue
# Check if app can be opened subprocess.check_call(['spctl', '--assess', '--verbose=4', app_path]) print("App passed system security assessment")
except subprocess.CalledProcessError as e: print(f"Warning: Verification failed: {str(e)}") except FileNotFoundError: print("Warning: Verification tools not found")
except Exception as e: print(f"Error verifying app bundle: {str(e)}")
def build_installer(target_arch: Optional[str] = None): """Build the installer for the current platform and specified architecture.""" config = BuildConfig()
# Clean previous builds clean_build_dirs()
# Ensure correct Python architecture if config.system == 'Darwin': subprocess.run(['arch', f'-{target_arch}' if target_arch else '', sys.executable, '-m', 'pip', 'install', '--upgrade', 'pip']) subprocess.run(['arch', f'-{target_arch}' if target_arch else '', sys.executable, '-m', 'pip', 'install', 'pyinstaller', 'customtkinter'])
# Create spec file for target architecture spec_file = create_spec_file(target_arch or config.arch)
# Build command build_cmd = ['pyinstaller', '--clean', '--noconfirm', spec_file]
if config.system == 'Darwin': build_cmd = ['arch', f'-{target_arch}'] + build_cmd if target_arch else build_cmd
try: # Execute build subprocess.run(build_cmd, check=True)
# Create platform-specific release folder release_dir = f'release_{config.system.lower()}_{target_arch}' if os.path.exists(release_dir): shutil.rmtree(release_dir) os.makedirs(release_dir)
if config.system == 'Darwin': app_name = f'SymbolicAI_Installer-{target_arch}.app' final_app = f'{release_dir}/{app_name}'
# Create proper bundle structure os.makedirs(f'{final_app}/Contents/MacOS', exist_ok=True) os.makedirs(f'{final_app}/Contents/Resources', exist_ok=True) os.makedirs(f'{final_app}/Contents/Frameworks', exist_ok=True)
# Find the built app in dist dist_app = None
# Look for the .app in dist directory for item in os.listdir('dist'): if item.endswith('.app'): dist_app = os.path.join('dist', item) break
if not dist_app: raise FileNotFoundError("Built .app not found in dist directory")
# Copy the entire contents preserving structure shutil.copytree(dist_app, final_app, dirs_exist_ok=True)
# Ensure executable is in the correct location executable_path = f'{final_app}/Contents/MacOS/SymbolicAI_Installer' if not os.path.exists(executable_path): # Look for the executable in the dist directory for root, _, files in os.walk(dist_app): for file in files: if file == 'SymbolicAI_Installer': src = os.path.join(root, file) shutil.copy2(src, executable_path) break
# Copy icon if os.path.exists('icon.icns'): shutil.copy2('icon.icns', f'{final_app}/Contents/Resources/')
# Create Info.plist create_info_plist(final_app, target_arch)
# Create entitlements file create_entitlements()
# Set permissions os.chmod(executable_path, 0o755)
# Set proper permissions subprocess.run(['chmod', '-R', '+x', final_app], check=True)
# Remove any existing signatures and extended attributes subprocess.run(['xattr', '-cr', final_app], check=True)
try: # First, sign all frameworks and libraries print("Signing frameworks and libraries...") for root, _, files in os.walk(final_app): for file in files: file_path = os.path.join(root, file) if file.endswith(('.so', '.dylib')) or 'Python' in file: try: print(f"Signing {file_path}") subprocess.run([ 'codesign', '--force', '--sign', '-', '--timestamp', '--verbose', '--preserve-metadata=identifier,entitlements,requirements,flags,runtime', file_path ], check=True, capture_output=True, text=True) except subprocess.CalledProcessError as e: print(f"Warning: Failed to sign {file_path}") print(f"Error: {e.stderr}")
# Sign the main executable print("Signing main executable...") subprocess.run([ 'codesign', '--force', '--sign', '-', '--timestamp', '--verbose', '--options', 'runtime', executable_path ], check=True, capture_output=True, text=True)
# Finally sign the entire bundle print("Signing complete bundle...") subprocess.run([ 'codesign', '--force', '--sign', '-', '--timestamp', '--verbose', '--deep', '--options', 'runtime', '--entitlements', 'entitlements.plist', final_app ], check=True, capture_output=True, text=True)
except subprocess.CalledProcessError as e: print(f"Code signing failed: {e.stderr}")
# Verify the build verify_mac_app(final_app)
# Verify the executable format verify_executable_format(executable_path, target_arch)
except subprocess.CalledProcessError as e: print(f"Build process failed: {str(e)}") raise except FileNotFoundError as e: print(f"File not found error: {str(e)}") raise except Exception as e: print(f"Unexpected error during build: {str(e)}") raise
def create_release_zip(target_arch: str): config = BuildConfig() release_dir = f'release_{config.system.lower()}_{target_arch}' archive_name = f'SymbolicAI_Installer_{config.system.lower()}_{target_arch}' shutil.make_archive(archive_name, 'zip', release_dir)
def sign_mac_app(app_path: str): """Sign all binaries in the macOS app bundle.""" try: # Remove any existing signatures first subprocess.run(['xattr', '-cr', app_path], check=True)
# Sign all binaries and libraries recursively for root, _, files in os.walk(app_path): for file in files: file_path = os.path.join(root, file) try: output = subprocess.check_output(['file', file_path], text=True) if 'Mach-O' in output: subprocess.run([ 'codesign', '--force', '--sign', '-', '--timestamp', '--deep', '--preserve-metadata=entitlements,requirements,flags,runtime', file_path ], check=True) print(f"Signed: {file_path}") except (subprocess.CalledProcessError, Exception) as e: print(f"Warning: Could not sign {file_path}: {str(e)}") continue
# Finally sign the main bundle subprocess.run([ 'codesign', '--force', '--sign', '-', '--timestamp', '--deep', '--options', 'runtime', '--entitlements', 'entitlements.plist', app_path ], check=True) print(f"Successfully signed {app_path}") except Exception as e: print(f"Warning: Signing failed: {str(e)}")
def create_entitlements(entitlements_path: str = 'entitlements.plist'): """Create entitlements file for macOS app.""" entitlements = """<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>com.apple.security.cs.allow-unsigned-executable-memory</key> <true/> <key>com.apple.security.cs.allow-jit</key> <true/> <key>com.apple.security.cs.disable-library-validation</key> <true/> <key>com.apple.security.cs.debugger</key> <true/> <key>com.apple.security.get-task-allow</key> <true/> <key>com.apple.security.automation.apple-events</key> <true/> <key>com.apple.security.files.user-selected.read-write</key> <true/> <key>com.apple.security.files.downloads.read-write</key> <true/></dict></plist>""" with open(entitlements_path, 'w') as f: f.write(entitlements)
def build_universal_mac(): """Build universal binary for macOS (Apple Silicon only).""" config = BuildConfig() if not config.is_apple_silicon: print("Universal builds are only supported on Apple Silicon Macs") return
# Build for both architectures build_installer('arm64') build_installer('x86_64')
# Verify the builds verify_mac_app(f'release_darwin_arm64/SymbolicAI_Installer-arm64.app') verify_mac_app(f'release_darwin_x86_64/SymbolicAI_Installer-x86_64.app')
# Create universal build directory universal_dir = 'release_darwin_universal' if os.path.exists(universal_dir): shutil.rmtree(universal_dir) os.makedirs(f'{universal_dir}/SymbolicAI_Installer.app/Contents/MacOS')
# Use lipo to create universal binary subprocess.check_call([ 'lipo', 'release_darwin_arm64/SymbolicAI_Installer-arm64.app/Contents/MacOS/SymbolicAI_Installer', 'release_darwin_x86_64/SymbolicAI_Installer-x86_64.app/Contents/MacOS/SymbolicAI_Installer', '-create', '-output', f'{universal_dir}/SymbolicAI_Installer.app/Contents/MacOS/SymbolicAI_Installer' ])
# Copy resources and Info.plist from arm64 build shutil.copytree( 'release_darwin_arm64/SymbolicAI_Installer-arm64.app/Contents/Resources', f'{universal_dir}/SymbolicAI_Installer.app/Contents/Resources' ) shutil.copy2( 'release_darwin_arm64/SymbolicAI_Installer-arm64.app/Contents/Info.plist', f'{universal_dir}/SymbolicAI_Installer.app/Contents/Info.plist' )
# Verify universal build verify_mac_app(f'{universal_dir}/SymbolicAI_Installer.app')
# Create zip for universal build create_release_zip('universal')
if __name__ == '__main__': config = BuildConfig()
# Ensure icons are available ensure_icons()
if config.system == 'Darwin': if config.is_apple_silicon: # On Apple Silicon, build universal binary build_universal_mac() else: # On Intel Mac, build only x86_64 build_installer('x86_64') create_release_zip('x86_64') else: # For other platforms, build for current architecture build_installer() create_release_zip(config.arch)12345678910111213version: '3.8'
services: symai_service: build: context: . dockerfile: Dockerfile image: extensityai/symbolicai:latest command: uvicorn symai.endpoints.api:app --reload --host 0.0.0.0 --port 8999 ports: - 8999:8999 volumes: - .symai:/root/.symai12345678910111213141516171819202122232425# CLIP Engine
---
## ⚠️ Outdated or Deprecated Documentation ⚠️This documentation is outdated and may not reflect the current state of the SymbolicAI library. This page might be revived or deleted entirely as we continue our development. We recommend using more modern tools that infer the documentation from the code itself, such as [DeepWiki](https://deepwiki.com/ExtensityAI/symbolicai). This will ensure you have the most accurate and up-to-date information and give you a better picture of the current state of the library.
---
To perform text-based image few-shot classification, we use `CLIP`. This implementation is very experimental, and conceptually does not fully integrate the way we intend it, since the embeddings of CLIP and GPT-3 are not aligned (embeddings of the same word are not identical for both models). Aligning them remains an open problem for future research. For example, one could learn linear projections from one embedding space to the other.
The following example demonstrates how to classify the image of our generated cat from above and return the results as an array of probabilities:
```pythonclip = Interface('clip')res = clip('https://oaidalleapiprodscus.blob.core.windows.net/private/org-l6FsXDfth6...', ['cat', 'dog', 'bird', 'horse', 'sheep', 'cow', 'elephant', 'bear', 'zebra', 'giraffe'])```
```bash:Output:array([[9.72840726e-01, 6.34790864e-03, 2.59368378e-03, 3.41371237e-03, 3.71197984e-03, 8.53193272e-03, 1.03346225e-04, 2.08464009e-03, 1.77942711e-04, 1.94185617e-04]], dtype=float32)```123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081# Custom Engine
If you want to replace or extend the functionality of our framework, you can do so by customizing the existing engines or creating new engines.To create and use any other LLM as a backend you can for example change the `neurosymbolic` engine setting and register the new engine to the `EngineRepository`. The following example shows how to create a new `neurosymbolic` engine:
```pythonfrom symai.backend.base import Enginefrom symai.functional import EngineRepository
# setup an engineclass MyEngine(Engine): def id(self): return 'neurosymbolic'
def prepare(self, argument): # get input from the pre-processors output and use *args, **kwargs and prop from argument # argument.prop contains all your kwargs accessible via dot `.` operation and additional meta info # such as function signature, system relevant info etc. prompts = argument.prop.preprocessed_input args = argument.args kwargs = argument.kwargs # prepare the prompt statement as you want (take a look at the other engines like for GPT-4) ... # assign it to prepared_input argument.prop.prepared_input = ...
def forward(self, argument): # get prep statement prompt = argument.prop.prepared_input # Your API / engine related call code here return ...
# register your engineEngineRepository.register('neurosymbolic', engine, allow_engine_override=True)```
Any engine is derived from the base class `Engine` and is then registered in the engines repository using its registry ID. The ID is for instance used in `core.py` decorators to address where to send the zero/few-shot statements using the class `EngineRepository`. You can find the `EngineRepository` defined in `functional.py` with the respective `query` method. Every engine has therefore three main methods you need to implement. The `id`, `prepare` and `forward` method. The `id` return the engine category. The `prepare` and `forward` methods have a signature variable called `argument` which carries all necessary pipeline relevant data. For instance, the output of the `argument.prop.preprocessed_input` contains the pre-processed output of the `PreProcessor` objects and is usually what you need to build and pass on to the `argument.prop.prepared_input`, which is then used in the `forward` call.
If you don't want to re-write the entire engine code but overwrite the existing prompt `prepare` logic, you can do so by subclassing the existing engine and overriding the `prepare` method.
Here is an example of how to initialize your own engine. We will subclass the existing `GPTXChatEngine` and override the `prepare` method. This method is called before the neural computation and can be used to modify the input prompt's parameters that will be passed in for execution. In this example, we will replace the prompt with dummy text for illustration purposes:
```pythonimport os
from symai import Expression, Symbolfrom symai.backend.engines.neurosymbolic.engine_openai_gptX_chat import \ GPTXChatEnginefrom symai.functional import EngineRepository
class DummyEngine(GPTXChatEngine): def __init__(self): super().__init__(model='gpt-4o-mini', api_key=os.getenv('OPENAI_API_KEY', 'your-api-key-here'))
def prepare(self, argument): argument.prop.prepared_input = [ {'role': 'system', 'content': 'Write like Jack London!'}, {'role': 'user', 'content': 'Go wild and generate something!'} ]
custom_engine = DummyEngine()sym = Symbol()EngineRepository.register('neurosymbolic', custom_engine, allow_engine_override=True)res = sym.compose()print(res)```
To configure an engine, we can forward commands through `Expression` objects by using the `command` method. The `command` method passes on configurations (as `**kwargs`) to the engines and change functionalities or parameters. The functionalities depend on the respective engine.
In this example, we will enable `verbose` mode, where the engine will print out the methods it is executing and the parameters it is using. This is useful for debugging purposes:
```pythonfrom symai import Expression
sym = Symbol('Hello World!')Expression.command(engines=['neurosymbolic'], verbose=True)res = sym.translate('German')```
Finally, if you want to create a completely new engine but still maintain our workflow, you can use the `query` function from [`symai/functional.py`](https://github.com/ExtensityAI/symbolicai/blob/main/symai/functional.py) and pass in your engine along with all other specified objects (i.e., Prompt, PreProcessor, etc).123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163# Drawing Engine
We now expose two distinct high-level drawing interfaces:
1. **`gpt_image`** – a unified wrapper around OpenAI’s Images API (DALL·E 2/3 and `gpt-image-*`).2. **`flux`** – Black Forest Labs’ Flux text-to-image models via api.us1.bfl.ai.
Both return a list of local PNG file paths.
---
## 1. OpenAI “gpt_image” Interface
Use `Interface('gpt_image')` to drive OpenAI’s Images API.Supported models:- `dall-e-2`- `dall-e-3`- `gpt-image-1`
### Example: Create
```pythonfrom symai.interfaces import Interface
gpt_image = Interface('gpt_image')
paths = gpt_image( "a fluffy cat with a cowboy hat", operation="create", # create | variation | edit model="dall-e-3", # choose your model n=1, # number of images size=1024, # square size in px, or "1024x1024" response_format="url", # "url" or "b64_json" # Extra for DALL·E-3: quality="standard", # "standard" | "hd" style="vivid", # "vivid" | "natural" # Extra for gpt-image-*: moderation="auto", # "auto" | "strict" background="transparent", # "auto" | "transparent" output_compression="png", # "png" | "jpeg" | "webp" # if jpeg/webp you can also pass `output_compression=80` for quality)
print(paths[0]) # → /tmp/tmpabcd.png```
### Example: Variation
```pythonfrom symai.interfaces import Interfacefrom pathlib import Path
gpt_image = Interface('gpt_image')
paths = gpt_image( operation="variation", model="dall-e-2", image_path=Path("assets/images/cat.png"), n=3, size=512, response_format="url",)```
### Example: Edit
```pythonfrom symai.interfaces import Interfacefrom pathlib import Path
gpt_image = Interface('gpt_image')
paths = gpt_image( "Add medieval armor and scrolls in the background", operation="edit", model="gpt-image-1", image_path=Path("assets/images/cat.png"), mask_path=Path("assets/images/cat-mask.png"), # optional n=1, size=512, quality="medium", # only for gpt-image-*)```
### Supported Parameters
**Common** (all operations):
- `prompt` (str)- `operation` (`"create"`|`"variation"`|`"edit"`)- `model` (str)- `n` (int, default=1)- `size` (int or `"WxH"`)- `response_format` (`"url"`|`"b64_json"`)
**Create-only**:
- DALL·E-3: - `quality` (`"standard"`|`"hd"`) - `style` (`"vivid"`|`"natural"`)- gpt-image-*: - `quality` (`"auto"`|`"low"`|`"medium"`|`"high"`) - `moderation` (`"auto"`|`"strict"`) - `background` (`"auto"`|`"transparent"`) - `output_compression` (`"png"`|`"jpeg"`|`"webp"` or integer)
**Variation / Edit**:
- `image_path` (Path or str or list)- `mask_path` (Path or str, edit only)
---
## 2. Black Forest Labs “flux” Interface
Use `Interface('flux')` to call Flux via https://api.us1.bfl.ai.Supported models: any `flux-*`, e.g. configured in `SYMAI_CONFIG["DRAWING_ENGINE_MODEL"]`.
### Example
```pythonfrom symai.interfaces import Interface
flux = Interface('flux')
paths = flux( "a futuristic city skyline at night", operation="create", # currently only 'create' is implemented model="flux-pro-1.1", width=1024, # default 1024 height=768, # default 768 steps=50, # default 40 guidance=7.5, # default None seed=42, # default None safety_tolerance=2, # default 2 prompt_upsampling=False, # default False interval=5, # default None output_format="png", # default 'png')
print(paths) # → ['/tmp/tmp1234.png']```
### Supported Parameters
- `model` (str)- `width` (int, default 1024)- `height` (int, default 768)- `steps` (int, default 40)- `guidance` (float)- `seed` (int)- `safety_tolerance` (int, default 2)- `prompt_upsampling` (bool, default False)- `interval` (int)- `output_format` (str, default 'png')- `except_remedy` (callable)
Under the hood Flux uses:
- POST `https://api.us1.bfl.ai/v1/{model}`- GET `https://api.us1.bfl.ai/v1/get_result?id={request_id}`
and writes out local PNG file(s).12345678# File Engine
To perform file operations, we use the operating system's file system. Currently, we support only PDF files and plain text files. This is an early stage, and we are working on more sophisticated file system access and remote storage. The following example demonstrates how to read a PDF file and return the text:
```pythonfrom symai import Symbolres = Symbol('./LICENSE').open()```12345678910111213141516171819202122# Indexing Engine
---
## ⚠️ Outdated or Deprecated Documentation ⚠️This documentation is outdated and may not reflect the current state of the SymbolicAI library. This page might be revived or deleted entirely as we continue our development. We recommend using more modern tools that infer the documentation from the code itself, such as [DeepWiki](https://deepwiki.com/ExtensityAI/symbolicai). This will ensure you have the most accurate and up-to-date information and give you a better picture of the current state of the library.
---
We use `Pinecone` to index and search for text. The following example demonstrates how to store text as an index and then retrieve the most related match:
```pythonexpr = Expression()expr.add(Symbol('Hello World!').zip())expr.add(Symbol('I like cookies!').zip())res = expr.get(Symbol('hello').embedding, index_name='default_index').ast()res['matches'][0]['metadata']['text'][0]```
Here, the `zip` method creates a pair of strings and embedding vectors, which are then added to the index. The line with `get` retrieves the original source based on the vector value of `hello` and uses `ast` to cast the value to a dictionary.
You can set several optional arguments for the indexing engine. For more details, see the `symai/backend/engine_pinecone.py` file.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125# Local Engines## Local Neuro-Symbolic Engine
You can use a locally hosted instance for the Neuro-Symbolic Engine. We build on top of:- [llama.cpp](https://github.com/ggerganov/llama.cpp/tree/master) either through: - Direct C++ server from llama.cpp - [llama-cpp-python](https://github.com/abetlen/llama-cpp-python?tab=readme-ov-file)- [huggingface/transformers](https://huggingface.co/docs/transformers/en/index) through a custom FastAPI server.
### llama.cpp backendFor instance, let's suppose you want to set as a Neuro-Symbolic Engine the latest Llama 3 model. First, download the model with the HuggingFace CLI:```bashhuggingface-cli download TheBloke/LLaMA-Pro-8B-Instruct-GGUF llama-pro-8b-instruct.Q4_K_M.gguf --local-dir .```
With `symai`, first set the `NEUROSYMBOLIC_ENGINE_MODEL` to `llamacpp`:
```json{ "NEUROSYMBOLIC_ENGINE_API_KEY": "", "NEUROSYMBOLIC_ENGINE_MODEL": "llamacpp", ...}```
You can then run the server in two ways:
1. Using Python bindings:```bashsymserver --env python --model ./llama-pro-8b-instruct.Q4_K_M.gguf --n_gpu_layers -1 --chat_format llama-3 --port 8000 --host localhost```
2. Using C++ server directly:```bashsymserver --env cpp --cpp-server-path /path/to/llama.cpp/server -m ./llama-pro-8b-instruct.Q4_K_M.gguf --port 8000 --host localhost```
To see all available options, run:```bashsymserver --env python --help # for Python bindingssymserver --env cpp --cpp-server-path /path/to/llama.cpp/server --help # for C++ server```
### HuggingFace backendLet's suppose we want to use `dolphin-2.9.3-mistral-7B-32k` from HuggingFace. First, download the model with the HuggingFace CLI:```bashhuggingface-cli download cognitivecomputations/dolphin-2.9.3-mistral-7B-32k --local-dir ./dolphin-2.9.3-mistral-7B-32k```
For the HuggingFace server, you have to set the `NEUROSYMBOLIC_ENGINE_MODEL` to `huggingface`:```json{ "NEUROSYMBOLIC_ENGINE_API_KEY": "", "NEUROSYMBOLIC_ENGINE_MODEL": "huggingface", ...}```
Then, run `symserver` with the following options:```bashsymserver --model ./dolphin-2.9.3-mistral-7B-32k --attn_implementation flash_attention_2```
To see all the available options we support for HuggingFace, run:```bashsymserver --help```
Now you are set to use the local engine.
```python# do some symbolic computation with the local enginesym = Symbol('Kitties are cute!').compose()print(sym)
# :Output:# Kittens are known for their adorable nature and fluffy appearance, making them a favorite addition to many homes across the world. They possess a strong bond with# their owners, providing companionship and comfort that can ease stress and anxiety. With their playful personalities, they are often seen as a symbol of happiness# and joy, and their unique characteristics such as purring, kneading, and head butts bring warmth to our hearts. Cats also have a natural instinct to groom, which# helps them maintain their clean and soft fur. Not only do they bring comfort and love to their owners, but they also have some practical benefits, such as reducing# allergens, deterring pests, and even reducing stress in their surroundings. Overall, it is no surprise that pets have a long history of providing both emotional# and physical comfort and happiness to their owners, making them a much-loved member of families around the world.```
## Local Embedding EngineYou can also use local embedding models through the `llama.cpp` backend. First, set the `EMBEDDING_ENGINE_MODEL` to `llamacpp`:
```json{ "EMBEDDING_ENGINE_API_KEY": "", "EMBEDDING_ENGINE_MODEL": "llamacpp", ...}```
For instance, to use the Nomic embed text model, first download it:```bashhuggingface-cli download nomic-ai/nomic-embed-text-v1.5-GGUF nomic-embed-text-v1.5.Q8_0.gguf --local-dir .```
Then start the server with embedding-specific parameters using either:
Python bindings:```bashsymserver --env python --model nomic-embed-text-v1.5.Q8_0.gguf --embedding True --n_ctx 2048 --rope_scaling_type 2 --rope_freq_scale 0.75 --n_batch 32 --port 8000 --host localhost```
C++ server:```bashsymserver --env cpp --cpp-server-path /path/to/llama.cpp/server -ngl 0 -m nomic-embed-text-v1.5.Q8_0.gguf --embedding -c 8192 -b 8192 --rope-scaling yarn --rope-freq-scale .75 --port 8000 --host localhost```
The server supports batch processing for embeddings. Here's how to use it with `symai`:
```pythonfrom symai import Symbol
# Single text embeddingsome_text = "Hello, world!"embedding = Symbol(some_text).embed() # returns a list (1 x dim)
# Batch processingsome_batch_of_texts = ["Hello, world!"] * 32embeddings = Symbol(some_batch_of_texts).embed() # returns a list (32 x dim)```123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353# Neuro-Symbolic Engine
The **neuro-symbolic** engine is our generic wrapper around large language models (LLMs) that support prompts, function/tool calls, vision tokens, token‐counting/truncation, etc.Depending on which backend you configure (OpenAI/GPT, Claude, Gemini, Deepseek, llama.cpp, HuggingFace, …), a few things must be handled differently:
* GPT-family (OpenAI) and most backends accept the usual `max_tokens`, `temperature`, etc., out of the box.* Claude (Anthropic), Gemini (Google), and Deepseek can return an internal “thinking trace” when you enable it.* Local engines (llamacpp, HuggingFace) do *not* yet support token counting, JSON format enforcement, or vision inputs in the same way.* Token‐truncation and streaming are handled automatically but may vary in behavior by engine.
**Note**: the most accurate documentation is the _code_, so be sure to check out the tests. Look for the `mandatory` mark since those are the features that were tested and are guaranteed to work.
---
## Basic Query
```pythonfrom symai import Symbol, Expression
# A one-off questionres = Symbol("Hello, world!").query("Translate to German.")print(res.value)# → "Hallo, Welt!"```
Under the hood this uses the `neurosymbolic` engine.
---
## Raw LLM Response
If you need the raw LLM objects (e.g. `openai.ChatCompletion`, `anthropic.types.Message`/`anthropic.Stream`, or `google.genai.types.GenerateContentResponse`), use `raw_output=True`:
```pythonfrom symai import Expression
raw = Expression.prompt("What is the capital of France?", raw_output=True)# raw.value is the LLM response object```
---
## Function/Tool Calls
Models that support function calls (OpenAI GPT-4, Claude, Gemini, …) can dispatch to your `symai.components.Function` definitions:
```pythonfrom symai.components import Function
tools = [{ "type": "function", "function": { "name": "get_weather", "description": "Get current temperature for a location.", "parameters": { "type": "object", "properties": { "location": {"type": "string"} }, "required": ["location"] } }}]
fn = Function( "Choose and call the appropriate function", tools=tools)
# GPT-style tool callresp = fn("What's the temperature in Bogotá, Colombia?", raw_output=True)# resp.choices[0].finish_reason == "tool_calls"# resp.choices[0].message.tool_calls[0].function.name == "get_weather"```
For Claude the API shapes differ slightly:
```pythonfrom anthropic.types import ToolUseBlock
tools = [ { "name": "get_stock_price", "description": "Get stock price for a ticker.", "input_schema": { … } }]fn = Function("Pick a function", tools=tools)
# Enable thinking trace (see next section) if neededresp = fn("What's the S&P 500 today?", raw_output=True, thinking=thinking, max_tokens=16000)blocks = [b for b in resp.content if isinstance(b, ToolUseBlock)]assert blocks[0].name == "get_stock_price"```
---
## Thinking Trace (Claude, Gemini & Deepseek)
Some engines (Anthropic's Claude, Google's Gemini, Deepseek) can return an internal **thinking trace** that shows how they arrived at an answer. To get it, you must:
1. Pass `return_metadata=True`.2. Pass a `thinking=` configuration if required.3. Inspect `metadata["thinking"]` after the call.
### Claude (Anthropic)
```pythonfrom symai import Symbol
thinking = {"budget_tokens": 4092}
res, metadata = Symbol("Topic: Disneyland") \ .query( "Write a dystopic take on the topic.", return_metadata=True, thinking=thinking, max_tokens=16_000 )print(res.value)print(metadata["thinking"])```
### Gemini (Google)
```pythonfrom symai import Symbol
thinking = {"thinking_budget": 1024}
res, metadata = Symbol("Topic: Disneyland") \ .query( "Write a dystopic take on the topic.", return_metadata=True, thinking=thinking )print(res.value)print(metadata["thinking"])```
### Deepseek
```pythonfrom symai import Symbol
# Deepseek returns thinking by default if you enable metadatares, metadata = Symbol("Topic: Disneyland") \ .query( "Write a dystopic take on the topic.", return_metadata=True )print(res.value)print(metadata["thinking"])```
---
## JSON‐Only Responses
To force the model to return valid JSON and have `symai` validate it:
```pythonimport jsonfrom symai import Expression
admin_role = "system" # or "developer" for non-GPT backends
resp = Expression.prompt( message=[ {"role": admin_role, "content": "You output valid JSON."}, {"role": "user", "content": ( "Who won the world series in 2020?" " Return as { 'team':'str','year':int,'coach':'str' }" )} ], response_format={"type": "json_object"}, suppress_verbose_output=True)data = json.loads(resp.value)# data == {"team":"Los Angeles Dodgers", "year":2020, "coach":"Dave Roberts"}```
---
## Token Counting & Truncation
The default pipeline will automatically estimate token usage and truncate conversation as needed.On GPT-family backends, raw API usage in `response.usage` matches what `symai` computes.For Gemini, an API call is made to retrieve token counts.For Claude / llama.cpp / HuggingFace, skip token‐comparison tests as they are not uniformly supported yet.
If a tokenizer is available for the current engine, you can easily count tokens in a string via `Symbol`:```pythonstring = "Hello, World!"print(Symbol(string).tokens)```
### Tracking Usage and Estimating Costs with `MetadataTracker`
For more detailed tracking of API calls, token usage, and estimating costs, you can use the `MetadataTracker` in conjunction with `RuntimeInfo`. This is particularly useful for monitoring multiple calls within a specific code block.> Note: we only track OpenAI models for now (chat and search).
`MetadataTracker` collects metadata from engine calls made within its context. `RuntimeInfo` then processes this raw metadata to provide a summary of token counts, number of API calls, elapsed time, and an estimated cost if pricing information is provided.
Here's an example of how to use them:
```pythonimport timefrom symai import Symbol, Interfacefrom symai.components import MetadataTrackerfrom symai.utils import RuntimeInfofrom symai.backend.settings import SYMAI_CONFIG
# This is a simplified cost estimation function.# It's called for each engine's usage data.def estimate_cost_for_engine(info: RuntimeInfo, pricing: dict) -> float: # Cost calculation including cached tokens and per-call costs. # Assumes 'pricing' dict contains 'input', 'cached_input', 'output', and optionally 'calls' keys. input_cost = (info.prompt_tokens - info.cached_tokens) * pricing.get("input", 0) cached_input_cost = info.cached_tokens * pricing.get("cached_input", 0) output_cost = info.completion_tokens * pricing.get("output", 0) call_cost = info.total_calls * pricing.get("calls", 0) # Cost for the number of API calls return input_cost + cached_input_cost + output_cost + call_cost
# This check is illustrative; adapt as needed for your environment.NEUROSYMBOLIC_ENGINE_IS_OPENAI = 'gpt' in SYMAI_CONFIG.get('NEUROSYMBOLIC_ENGINE_MODEL', '').lower()SEARCH_ENGINE_IS_OPENAI = 'gpt' in SYMAI_CONFIG.get('SEARCH_ENGINE_MODEL', '').lower()
if NEUROSYMBOLIC_ENGINE_IS_OPENAI and SEARCH_ENGINE_IS_OPENAI: sym = Symbol("This is a context sentence.") # We'll assume 'openai_search' interface maps to an engine like 'GPTXSearchEngine' or similar. # This engine name should then be a key in your dummy_pricing dictionary. search = Interface('openai_search') start_time = time.perf_counter() with MetadataTracker() as tracker: res = sym.query("What is the capital of France?") search_res = search("What are the latest developments in AI?") end_time = time.perf_counter()
# Dummy pricing for cost estimation. # Keys are tuples of (engine_name, model_id) and should match the keys # that appear in the tracker.usage dictionary. These depend on your SYMAI_CONFIG # and the models used by the engines. dummy_pricing = { ("GPTXChatEngine", "gpt-model-A"): { # Example: engine used by sym.query() and its model "input": 0.000002, "cached_input": 0.000001, "output": 0.000002 }, ("GPTXSearchEngine", "gpt-model-B"): { # Example: engine used by Interface('openai_search') and its model "input": 0.000002, "cached_input": 0.000001, "output": 0.000002, "calls": 0.0001 # Cost per API call } # Add other (engine_name, model_id) tuples and their pricing if used. }
# Process collected data: # RuntimeInfo.from_tracker returns a dictionary where keys are (engine_name, model_id) tuples # and values are RuntimeInfo objects for each engine-model combination. # We pass 0 for total_elapsed_time initially, as it's set for the aggregated sum later. usage_per_engine = RuntimeInfo.from_tracker(tracker, 0)
# Initialize an empty RuntimeInfo object to aggregate totals aggregated_usage = RuntimeInfo( total_elapsed_time=0, prompt_tokens=0, completion_tokens=0, reasoning_tokens=0, cached_tokens=0, total_calls=0, total_tokens=0, cost_estimate=0 ) for (engine_name, model_id), engine_data in usage_per_engine.items(): pricing_key = (engine_name, model_id) if pricing_key in dummy_pricing: # Estimate cost for this specific engine and model engine_data_with_cost = RuntimeInfo.estimate_cost(engine_data, estimate_cost_for_engine, pricing=dummy_pricing[pricing_key]) aggregated_usage += engine_data_with_cost # Aggregate data # Set the total elapsed time for the aggregated object aggregated_usage.total_elapsed_time = end_time - start_time```
This approach provides a robust way to monitor and control costs associated with LLM API usage, especially when making multiple calls. Remember to update the `pricing` dictionary with the current rates for the models you are using. The `estimate_cost` function can also be customized to reflect complex pricing schemes (e.g., different rates for different models, image tokens, etc.).
---
## Preview Mode
When building new `Function` objects, preview mode lets you inspect the *prepared* prompt **before** calling the engine:
```pythonfrom symai.components import Function
preview_fn = Function( "Return a JSON markdown string.", static_context="Static…", dynamic_context="Dynamic…")# Instead of executing, retrieve prop.processed_inputpreview = preview_fn("Hello, World!", preview=True)assert preview.prop.processed_input == "Hello, World!"```
---
## Self-Prompting
If you want the model to “self-prompt” (i.e. use the original symbol text as context):
```pythonfrom symai import Symbol
sym = Symbol("np.log2(2)", self_prompt=True)res = sym.query("Is this equal to 1?", self_prompt=True)assert "yes" in res.value.lower()```
---
## Vision Inputs
Vision tokens (e.g. `<<vision:path/to/cat.jpg:>>`) can be passed in prompts on supported backends:
```pythonfrom pathlib import Pathfrom symai import Symbol
file = Path("assets/images/cat.jpg")res = Symbol(f"<<vision:{file}:>>").query("What is in the image?")assert "cat" in res.value.lower()```
Skip this on llama/HuggingFace if not implemented.
---
## Summary
The neuro-symbolic engine is your central entry point for all LLM-based operations in `symai`.By tweaking flags such as `return_metadata`, `raw_output`, `preview`, and `thinking`, you can:
- extract low-level API objects,- retrieve internal thought traces,- preview prompts before hitting the API,- enforce JSON formats,- handle function/tool calls,- feed in vision data,- and let `symai` manage token‐truncation automatically.
Refer to the individual engine docs (OpenAI, Claude, Gemini, Deepseek, llama.cpp, HuggingFace) for any model-specific quirks.123456789101112131415161718# OCR Engine
---
## ⚠️ Outdated or Deprecated Documentation ⚠️This documentation is outdated and may not reflect the current state of the SymbolicAI library. This page might be revived or deleted entirely as we continue our development. We recommend using more modern tools that infer the documentation from the code itself, such as [DeepWiki](https://deepwiki.com/ExtensityAI/symbolicai). This will ensure you have the most accurate and up-to-date information and give you a better picture of the current state of the library.
---To extract text from images, we can perform optical character recognition (OCR) with `APILayer`. The following example demonstrates how to transcribe an image and return the text:
```pythonfrom symai.interfaces import Interface
ocr = Interface('ocr')res = ocr('https://media-cdn.tripadvisor.com/media/photo-p/0f/da/22/3a/rechnung.jpg')```
The OCR engine returns a dictionary with a key `all_text` where the full text is stored. For more details, refer to their documentation [here](https://apilayer.com/marketplace/image_to_text-api).123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116# Search Engine
To obtain fact-based content, we can perform search queries via `SerpApi` with a `Google` backend. The following example demonstrates how to search for a query and return the results:
```pythonfrom symai.interfaces import Interface
search = Interface('serpapi')res = search('Birthday of Barack Obama')```
```bash:Output:August 4, 1961```
Here's a quick example for how to set it up:```bash{ … "SEARCH_ENGINE_API_KEY": …, "SEARCH_ENGINE_ENGINE": "google", …}```
We can also use PerplexityAI to search for a query and return the results:
```pythonfrom symai.interfaces import Interfacesearch = Interface("perplexity")res = search('What is a quantum computer?', system_message='You are Rick from Rick and Morty. You reply back as Rick would reply to Morty.')```
```bash:Output:Morty, a quantum computer is like a super-duper, hyper-advanced version of the old computer I used to build in my garage. It uses the principles of quantum mechanics to process information in ways that classical computers can't even dream of.
Here's the deal: instead of using those boring old bits that are either 0 or 1, quantum computers use something called qubits. These qubits can exist in multiple states at the same time, thanks to this weird phenomenon called superposition. It's like when you flip a coin and it's both heads and tails until you look at it—same idea, Morty.
And then there's entanglement. This means that if you have two qubits, the state of one can depend on the state of the other, no matter how far apart they are. It's like having a secret handshake with your buddy that works even if you're on opposite sides of the multiverse.
So, with these qubits and their superposition and entanglement, quantum computers can perform calculations at speeds that would make even the most powerful supercomputers look like they're running on a Commodore 64. They can simulate molecular interactions, break encryption codes faster than you can say "Wubba lubba dub dub," and solve problems that are currently unsolvable for classical computers.
Now, if you'll excuse me, I have some real science to attend to. Don't get too excited, Morty; it's still just a bunch of fancy math and physics. But hey, it's cool stuff, right?```
Please note that the system_message is optional and can be used to provide context to the model. For all available kwargs that can be passed to the perplexity engine, please refer to the PerplexityAI documentation. Also, please see the available supported engines for PerplexityAI here. Here's a quick example for how to set it up:
```bash{ … "SEARCH_ENGINE_API_KEY": "pplx-…", "SEARCH_ENGINE_MODEL": "sonar", …}```
Additionally, we can use OpenAI's search capabilities to answer queries and get citations for the information:
```pythonfrom symai.interfaces import Interfacesearch = Interface("openai_search")res = search('Who is Nicusor Dan?')```
```bash:Output:"As of May 20, 2025, the acting president of Romania is Ilie Bolojan. He assumed this role on February 12, 2025, following the resignation of Klaus Iohannis. Bolojan, a member of the National Liberal Party, previously served as the president of the Senate and the mayor of Oradea. [1]\n\nRomania held a presidential election on May 18, 2025, in which Nicușor Dan, the current mayor of Bucharest, was elected as the new president. Dan, an independent candidate endorsed by several pro-European Union parties, won the election with 53.6% of the vote, defeating nationalist candidate George Simion. [2] He is expected to be inaugurated as president in the near future.\n\n\n## Nicușor Dan's Victory in Romanian Presidential Election:\n- [3]\n- [4]\n- [5] "```
The OpenAI search engine returns a `SearchResult` object that includes citations for the information. You can access these citations using:
```pythoncitations = res.get_citations()```
The engine supports various customization options, such as specifying user location and timezone:
```python# Search with user locationres = search("What are popular tourist attractions nearby?", user_location={ "type": "approximate", "country": "US", "city": "New York", "region": "New York" })
# Search with timezoneres = search("What local events are happening today?", user_location={ "type": "approximate", "country": "JP", "city": "Tokyo", "region": "Tokyo", "timezone": "Asia/Tokyo" })
# Control the amount of search contextres = search("Explain quantum computing developments", search_context_size="high")```
Here's how to configure the OpenAI search engine:
```bash{ … "SEARCH_ENGINE_API_KEY": "sk-…", "SEARCH_ENGINE_MODEL": "gpt-4.1-mini", …}```12345678910# Speech Engine (Whisper)
To transcribe audio files, we can perform speech transcription using `whisper`. The following example demonstrates how to transcribe an audio file and return the text:
```pythonfrom symai.interfaces import Interface
speech = Interface('whisper')res = speech('examples/audio.mp3')```123456789101112131415161718192021# Symbolic Engine (WolframAlpha)
---
## ⚠️ Outdated or Deprecated Documentation ⚠️This documentation is outdated and may not reflect the current state of the SymbolicAI library. This page might be revived or deleted entirely as we continue our development. We recommend using more modern tools that infer the documentation from the code itself, such as [DeepWiki](https://deepwiki.com/ExtensityAI/symbolicai). This will ensure you have the most accurate and up-to-date information and give you a better picture of the current state of the library.
---
Although our work primarily emphasizes how LLMs can assess symbolic expressions, many formal statements have already been efficiently implemented in existing symbolic engines, such as WolframAlpha. Therefore, with an API KEY from WolframAlpha, we can use their engine by using the `Interface('wolframalpha')`. This avoids error-prone evaluations from neuro-symbolic engines for mathematical operations. The following example demonstrates how to use WolframAlpha to compute the result of the variable `x`:
```pythonfrom symai import Interfaceexpression = Interface('wolframalpha')res = expression('x^2 + 2x + 1')```
```bash:Output:x = -1```symbolicai-main/symbolicai-main/.gitbook.yamlDeleted-5
symbolicai-main/symbolicai-main/.github/FUNDING.ymlDeleted-13
symbolicai-main/symbolicai-main/.gitignoreDeleted-163
symbolicai-main/symbolicai-main/.symai/symsh.config.jsonDeleted-16
symbolicai-main/symbolicai-main/CITATION.cffDeleted-12
symbolicai-main/symbolicai-main/DockerfileDeleted-49
symbolicai-main/symbolicai-main/MANIFEST.inDeleted-4
symbolicai-main/symbolicai-main/README.mdDeleted-371
symbolicai-main/symbolicai-main/app.pyDeleted-3
symbolicai-main/symbolicai-main/assets/images/banner.pngDeleted

Large File Pointer Details
- SHA256: ee5a5aed1b6adeb3fcaf3d52abb3e3d1881c4cff673f3f7ac2b146930ee6ed72
- Pointer size: 131 Bytes
- Size of remote file: 418 kB
symbolicai-main/symbolicai-main/assets/images/cat.jpgDeleted
symbolicai-main/symbolicai-main/assets/images/cat.pngDeleted

Large File Pointer Details
- SHA256: 875577457a09e3d84f6b7ce4745b775147f93990fd0b216664f0dab6b56e453c
- Pointer size: 132 Bytes
- Size of remote file: 1.3 MB
symbolicai-main/symbolicai-main/assets/images/img1.pngDeleted
symbolicai-main/symbolicai-main/assets/images/img10.pngDeleted
symbolicai-main/symbolicai-main/assets/images/img2.pngDeleted
symbolicai-main/symbolicai-main/assets/images/img3.pngDeleted
symbolicai-main/symbolicai-main/assets/images/img4.pngDeleted
symbolicai-main/symbolicai-main/assets/images/img5.pngDeleted
symbolicai-main/symbolicai-main/assets/images/img6.pngDeleted
symbolicai-main/symbolicai-main/assets/images/img7.pngDeleted
symbolicai-main/symbolicai-main/assets/images/img8.pngDeleted

Large File Pointer Details
- SHA256: 911781724545945be5562e420326ce2307e648541f990a1226cabecfe736f683
- Pointer size: 131 Bytes
- Size of remote file: 212 kB
symbolicai-main/symbolicai-main/assets/images/img9.pngDeleted
symbolicai-main/symbolicai-main/assets/images/preview.gifDeleted

Large File Pointer Details
- SHA256: 59582115271fdfe7d08c2931da24ca332d30d4cc70e9678312e899fc1f9ac652
- Pointer size: 132 Bytes
- Size of remote file: 1.28 MB
symbolicai-main/symbolicai-main/assets/images/screen1.jpegDeleted

Large File Pointer Details
- SHA256: 97afae65e439aaac9a96e1a02d1f61b19f6611169f0bc7276c8de6148f357a6e
- Pointer size: 131 Bytes
- Size of remote file: 451 kB
symbolicai-main/symbolicai-main/assets/images/symai_logo.pngDeleted

Large File Pointer Details
- SHA256: 2fbd98ef18d93b8a4cbce766455dd8687f2b9f22b3a4be01988924a891f3afc4
- Pointer size: 131 Bytes
- Size of remote file: 127 kB
symbolicai-main/symbolicai-main/assets/images/symsh.pngDeleted

Large File Pointer Details
- SHA256: 60e6538bff0841d366aa50074da65e20309eb2d77084d0a6ecbd969edbb52e0e
- Pointer size: 131 Bytes
- Size of remote file: 104 kB
symbolicai-main/symbolicai-main/assets/images/vid1.pngDeleted
symbolicai-main/symbolicai-main/assets/images/vid2.pngDeleted
symbolicai-main/symbolicai-main/assets/images/vid3.pngDeleted

Large File Pointer Details
- SHA256: 098a21daa3da02c846a73c2b4ce18c171ccb0b5ab1f6218233060fbf6b3528f6
- Pointer size: 131 Bytes
- Size of remote file: 142 kB
symbolicai-main/symbolicai-main/assets/images/vid4.pngDeleted
symbolicai-main/symbolicai-main/assets/images/vid5.pngDeleted
symbolicai-main/symbolicai-main/assets/images/vid6.pngDeleted
symbolicai-main/symbolicai-main/assets/results/news.htmlDeleted-145
symbolicai-main/symbolicai-main/assets/results/news.pngDeleted

Large File Pointer Details
- SHA256: c5932bf9626e2647e4d5fd8592c18069b5da2cbdd7f571fc6b5d5f1fe95d4104
- Pointer size: 131 Bytes
- Size of remote file: 622 kB
symbolicai-main/symbolicai-main/assets/results/news_prev.pngDeleted

Large File Pointer Details
- SHA256: 897d26462069d9d451449d186113926bbd008150635e279a425eafa6363f31bf
- Pointer size: 131 Bytes
- Size of remote file: 118 kB
symbolicai-main/symbolicai-main/bin/install.ps1Deleted-42
symbolicai-main/symbolicai-main/bin/install.shDeleted-104
symbolicai-main/symbolicai-main/build.pyDeleted-562
symbolicai-main/symbolicai-main/docker-compose.ymlDeleted-13
symbolicai-main/symbolicai-main/docs/source/ENGINES/clip_engine.mdDeleted-25
symbolicai-main/symbolicai-main/docs/source/ENGINES/custom_engine.mdDeleted-81
symbolicai-main/symbolicai-main/docs/source/ENGINES/drawing_engine.mdDeleted-163
symbolicai-main/symbolicai-main/docs/source/ENGINES/file_engine.mdDeleted-8
symbolicai-main/symbolicai-main/docs/source/ENGINES/indexing_engine.mdDeleted-22
symbolicai-main/symbolicai-main/docs/source/ENGINES/local_engine.mdDeleted-125
symbolicai-main/symbolicai-main/docs/source/ENGINES/neurosymbolic_engine.mdDeleted-353
symbolicai-main/symbolicai-main/docs/source/ENGINES/ocr_engine.mdDeleted-18
symbolicai-main/symbolicai-main/docs/source/ENGINES/search_engine.mdDeleted-116
symbolicai-main/symbolicai-main/docs/source/ENGINES/speech_engine.mdDeleted-10
symbolicai-main/symbolicai-main/docs/source/ENGINES/symbolic_engine.mdDeleted-21