In this folder, you'll find files with sample code that you can use if you want to develop and add new plugins, tools, LLM wrappers, vector stores, or data loaders to PyGPT.
There are example files here that can serve as tutorial and starting points for creating your own extensions:
-
custom_launcher.py
- custom application launcher -
example_audio_input.py
- example audio input provider (voice recognition) -
example_audio_output.py
- example audio output provider (speech synthesis) -
example_data_loader.py
- example data loader for Llama-index -
example_llm.py
- example LLM wrapper for Langchain and Llama-index -
example_plugin.py
- example plugin -
example_vector_store.py
- example vector store provider for Llama-index -
example_web_search.py
- example web search engine -
example_tool.py
- example tool
To see more examples, look through the files that make up the application:
Audio input providers:
pygpt_net.provider.audio_input.*
in: ./src/pygpt_net/provider/audio_input/
Audio output providers:
pygpt_net.provider.audio_output.*
in: ./src/pygpt_net/provider/audio_output/
Data loaders:
pygpt_net.provider.loaders.*
in: ./src/pygpt_net/provider/loaders/
LLM wrappers:
pygpt_net.provider.llms.*
in: ./src/pygpt_net/provider/llms/
Plugins:
pygpt_net.plugin.*
in: ./src/pygpt_net/plugin/
Vector store providers:
pygpt_net.provider.vector_stores.*
in: ./src/pygpt_net/provider/vector_stores/
Web search engines:
pygpt_net.provider.web.*
in: ./src/pygpt_net/provider/web/
Tools:
pygpt_net.tools.*
in: ./src/pygpt_net/tools/