Skip to main content

AI Debate Chat

A powerful Python package for creating AI-powered debate and chat applications with advanced knowledge retrieval capabilities.

Installation

pip install ai-debate-chat

Features

  • Flexible AI Models: Support for multiple AI models including OpenAI, Claude, DeepSeek, local models, and G4F (GPT for Free)
  • Smart Information Retrieval: Automatic research on debate topics using Wikipedia, Google, and DuckDuckGo
  • Vector Store Database: Efficient storage and retrieval of debate knowledge using FAISS and embeddings
  • Conversational Memory: Manages conversation history for contextual responses
  • Multi-Perspective Analysis: Presents various viewpoints on complex topics
  • Interactive Mode: Built-in interactive terminal interface for immediate use

Quick Start

from ai_debate_chat.debate_chat import AIDebateBot

# Initialize with OpenAI (requires API key)
bot = AIDebateBot(
    topic="Climate Change",
    model_choice="openai",
    api_key="your-api-key"
)

# Generate a response to a question
response = bot.generate_response("What are the main arguments for carbon taxes?")
print(response)

# Or use the interactive mode
bot.run_interactive()

Advanced Usage

Model Options

# Use Claude AI
bot = AIDebateBot(topic="Artificial Intelligence Ethics", model_choice="claude", api_key="your-anthropic-key")

# Use a local model
bot = AIDebateBot(topic="Space Exploration", model_choice="local", local_model_path="path/to/your/model")

# Use G4F (GPT for Free)
bot = AIDebateBot(topic="Quantum Computing", model_choice="g4f")

Custom Memory Management

from langchain.memory import ConversationBufferMemory

# Create custom memory
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)

# Initialize bot with custom memory
bot = AIDebateBot(
    topic="Cryptocurrency",
    model_choice="openai",
    api_key="your-api-key",
    memory=memory,
    max_memory_items=15  # Control memory size
)

# Clear memory when needed
bot.clear_memory()

ML Pipeline Details

The package includes a sophisticated machine learning pipeline that:

  1. Collects information from multiple sources:
    • Wikipedia articles
    • Google search results
    • DuckDuckGo search results
  2. Processes content:
    • Text cleaning and preprocessing
    • Removal of non-essential elements
    • Natural language processing with NLTK
  3. Creates knowledge embeddings:
    • Document chunking for better retrieval
    • FAISS vector storage for efficient similarity search
    • HuggingFace embeddings for semantic understanding

Requirements

  • Python 3.10 or higher
  • Key dependencies:
    • langchain-community
    • langchain-huggingface
    • langchain-text-splitters
    • faiss-cpu
    • transformers
    • g4f (optional)
    • sentence-transformers
    • torch
    • nltk
    • beautifulsoup4

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Metadata

Release files for ai-debate-chat 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-debate-chat 0.1.1
File Size Uploaded Provenance Actions
ai_debate_chat-0.1.1.tar.gz 13.0 kB Without provenance Details for ai_debate_chat-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-debate-chat 0.1.1
File Interpreter ABI Platform Actions
ai_debate_chat-0.1.1-py3-none-any.whl Python 3 none any Details for ai_debate_chat-0.1.1-py3-none-any.whl

Total release size: 24.5 kB

Release files / ai_debate_chat-0.1.1.tar.gz

Download URL ai_debate_chat-0.1.1.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d5affa357f3ea45484b6c611690dd9b88ced41f180e605747003f2a62caa07e3
BLAKE2b-256 checksum
How to use checksums
c027c5fd514008c2e4a62c705c9439ad5b6393a858c685be1aaa51ba6037dada
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / ai_debate_chat-0.1.1-py3-none-any.whl

Download URL ai_debate_chat-0.1.1-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fae66418cf3a7e1b299f704ec04ee4b058f598361aef7cb47355f289b4069680
BLAKE2b-256 checksum
How to use checksums
c134d35aa2d9772b9fa69501021ca6b3364237296ee0b9fdde08abe1bb4f60c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for ai-debate-chat 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page