knowledge-gpt
FreeExtract knowledge from information sources.
About knowledge-gpt
Knowledge-gpt is an open-source Python library that extracts knowledge from diverse sources—including websites, PDFs, PowerPoint files (PPTX), documents (Docs), YouTube subtitles, and audio (via speech-to-text)—and uses OpenAI's GPT-3 (or other language models) to generate answers. The text is transformed into fixed-size vector embeddings using open-source (HF) or OpenAI models, and when a query is submitted, it is converted to a vector and compared against stored embeddings. The most relevant information is selected as prompt context for the language model. Answers can be saved to a database (e.g., MongoDB) for future reference. The library provides specialized extractors (WebScrapeExtractor, PDFExtractor, PowerpointExtractor, etc.) and is installed via 'pip install knowledgegpt'.
Key Features
Pros & Cons
- Open-source and free (no licensing cost)
- Supports a wide variety of input sources (web, PDF, PPTX, Docs, YouTube, audio)
- Uses vector embeddings for relevance-based retrieval
- Can index knowledge for future queries
- Easy setup via pip with minimal dependencies
- Requires OpenAI API key for GPT-3 access (cost may apply)
- Requires downloading a language model (spaCy) for text parsing
- Not a standalone application; requires Python environment and dependency management
- Accuracy depends on the quality of the language model and embeddings used