Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alandoescs/pyvirtualassistantlib

An easy to use virtual assistant library for python
https://github.com/alandoescs/pyvirtualassistantlib

Last synced: 8 days ago
JSON representation

An easy to use virtual assistant library for python

Awesome Lists containing this project

README

        

# PyVirtualAssistantLib
An easy to use virtual assistant library for python

---

## Current Features
- GGUF support
- Retrieval Augmented Generation
- Source retrieval via a search engine api
- ConversationSummaryMemory

---

## Example Usage

```python
from PyVirtualAssistantLib import create_assistant, add_web_documents

path_llama = "C:/Users/Alan/PycharmProjects/PyVirtualAssistantLib/models/lmstudio-community/Meta-Llama-3-8B-Instruct-GGUF/Meta-Llama-3-8B-Instruct-Q4_K_M.gguf"
path_gemma = "C:/Users/Alan/PycharmProjects/PyVirtualAssistantLib/models/lmstudio-ai/gemma-2b-it-GGUF/gemma-2b-it-q8_0.gguf"

assistant = create_assistant(path_llama, verbose=False)

add_web_documents(assistant, "Latest advances in AI", num_results=10)

while True:
user_input = input("Enter something: ")
if user_input.lower() == 'exit':
break

for chunk in assistant.chat(user_input):
print(chunk, end='', flush=True)
print()
```