Skip to main content

Llama Index plugin for Wirtual Agents

Project description

Wirtual Plugins Llama Index

Agent Framework plugin for using Llama Index. Currently supports Query Engine and Chat Engine.

Install

pip install wirtual-plugins-llama-index

Query Engine

Query Engine is primarily used for RAG. See example voice agent

Chat Engine

Chat Engine can be used as an LLM within the framework.

# load the existing index
storage_context = StorageContext.from_defaults(persist_dir=<mydir>)
index = load_index_from_storage(storage_context)

async def entrypoint(ctx: JobContext):
    ...
    chat_engine = index.as_chat_engine(chat_mode=ChatMode.CONTEXT)
    assistant = VoicePipelineAgent(
        vad=silero.VAD.load(),
        stt=deepgram.STT(),
        llm=llama_index.LLM(chat_engine=chat_engine),
        tts=openai.TTS(),
        chat_ctx=initial_ctx,
    )

full example here

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

wirtual_plugins_llama_index-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wirtual_plugins_llama_index-0.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file wirtual_plugins_llama_index-0.0.1.tar.gz.

File metadata

File hashes

Hashes for wirtual_plugins_llama_index-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2c6511ff1de114f658fe6e59981dd6ef8d64a3c2e6dca42c005170d6d5bc979b
MD5 2fe103c4feaddc785b250bbd03217cac
BLAKE2b-256 b539b5e4212777e1f2cf38d90474fadcd6d63868369c0c20aee5fc1eabf986ed

See more details on using hashes here.

File details

Details for the file wirtual_plugins_llama_index-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wirtual_plugins_llama_index-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9401c344fd5276e964f06b867dd0c9ccbf9e9d790b63b70f40600fc8a8aef4b4
MD5 528003e5922d8fbda80573ed5a545e18
BLAKE2b-256 2b2ae33d8734ff057783965394ef09cb5329eab0e9ad92dcf10454b08a29702b

See more details on using hashes here.

Supported by

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