Skip to main content

No project description provided

Project description

God LLM 🤖

A framework for recursive thought expansion and exploration using Large Language Models.

Inspired by the article I wrote Let's Build a God LLM which explores the concept of recursive thought expansion and deep exploration using language models.

🌟 Features

Core Functionality

  • Recursive Thought Expansion: Generate and explore interconnected thoughts while maintaining context
  • Context Preservation: Maintains parent context during deep exploration
  • Relevance Filtering: Automatically removes irrelevant thought branches
  • Detailed Reporting: Generate comprehensive analysis of thought patterns
  • Debug Mode: Conditional logging for development (DEBUG=True|False)
  • Enhanced Visualization: Better representation of thought trees

Advanced Capabilities

  • Grounded Prompting: Improved prompt templates to maintain focus
  • Context Management: Efficient handling of conversation history
  • Custom Visualization: Methods for displaying thought hierarchies

🛠️ Upcoming Features

High Priority

  • Tool Integration
    • Implement with_tools() method for LLM classes
    • Support for Tavily integration
    • RAG (Retrieval Augmented Generation) implementation
    • Function calling in BaseLLM inheritor classes
    • Off-the-shelf tool library
    • Custom tool creation framework

Technical Improvements

  • Fix infinite expansion in expand() method
  • Implement comprehensive test suite
  • Enhanced graph visualization
  • Better divergence control in thought expansion

🚀 Getting Started

from god_llm.core.god import God
from god_llm.plugins.groq import ChatGroq

llm = ChatGroq(
    model_name="llama-3.1-70b-versatile",
    api_key="hello", #Dummy API key
)
god = God(llm=llm)

god.expand("Why?")

📘 Usage Examples

Basic Thought Expansion

god.report()

Using Tools

# Coming soon
llm = llm.with_tools([
    TavilyTool(),
    CustomTool(),
    RAGTool()
])

🤝 Contributing

Contributions are welcome! Please check out our contribution guidelines before getting started.

🐛 Known Issues

  • expand() method may run indefinitely in certain cases
  • Graph visualization can diverge from initial prompt
  • Deep expansion may lose context of original prompt

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments


Built with ❤️ for better thought exploration

When finding path, also account for relations, combine hierarchical (parent-child) and lateral (relations) nodes for retrieval, give higher weight for parent-child relationships

Allow to ask the right questions, that is the true wisdom of the God LLM

Project details


Download files

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

Source Distribution

god_llm-0.1.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

god_llm-0.1.0-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: god_llm-0.1.0.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for god_llm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f36fcdb0b1a936fc4d6577f724982931bfc4601d89a078bef8d7cafc19897aa6
MD5 38f552ecd5b6dfbc547d562ccc68c682
BLAKE2b-256 5431e50e5c5f7e6087014e291a40a391cf1f639021244cf3dbccc30a0b480a5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: god_llm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for god_llm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b97150d2429477bccf9e71bb7e64970a8035e422328badb5849dfef2349ce15f
MD5 9da906e23540e28b657119656bd9761b
BLAKE2b-256 ceed7526e2640e1b71f6578b7483c3089c23998aabf925d2c095fc69e6984575

See more details on using hashes here.

Supported by

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