Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alandoescs/pyvirtualassistantlib
- Owner: AlanDoesCS
- License: gpl-3.0
- Created: 2024-07-17T14:59:14.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-26T00:49:43.000Z (4 months ago)
- Last Synced: 2024-11-07T19:06:35.477Z (about 2 months ago)
- Language: Python
- Size: 39.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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_documentspath_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':
breakfor chunk in assistant.chat(user_input):
print(chunk, end='', flush=True)
print()
```