vector-vault 7.3.2__tar.gz → 7.3.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vector_vault-7.3.2 → vector_vault-7.3.3}/PKG-INFO +1 -1
- {vector_vault-7.3.2 → vector_vault-7.3.3}/setup.py +1 -1
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vector_vault.egg-info/PKG-INFO +1 -1
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vectorvault/vault.py +36 -36
- {vector_vault-7.3.2 → vector_vault-7.3.3}/LICENSE +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/README.md +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/setup.cfg +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vector_vault.egg-info/SOURCES.txt +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vector_vault.egg-info/dependency_links.txt +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vector_vault.egg-info/requires.txt +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vector_vault.egg-info/top_level.txt +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vectorvault/__init__.py +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vectorvault/ai.py +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vectorvault/cloud_api.py +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vectorvault/cloudmanager.py +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vectorvault/credentials_manager.py +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vectorvault/itemize.py +0 -0
- {vector_vault-7.3.2 → vector_vault-7.3.3}/vectorvault/utils.py +0 -0
|
@@ -25,7 +25,7 @@ import traceback
|
|
|
25
25
|
import random
|
|
26
26
|
from threading import Thread as T
|
|
27
27
|
from datetime import datetime, timedelta
|
|
28
|
-
from typing import List, Union
|
|
28
|
+
from typing import List, Union, Dict
|
|
29
29
|
from .ai import openai, OpenAIPlatform, AnthropicPlatform, GrokPlatform, GeminiPlatform, CerebrasPlatform, LLMClient, get_all_models
|
|
30
30
|
from .cloud_api import call_cloud_save, run_flow, run_flow_stream
|
|
31
31
|
from .cloudmanager import CloudManager, VaultStorageManager, as_completed, ThreadPoolExecutor
|
|
@@ -1402,22 +1402,22 @@ class Vault:
|
|
|
1402
1402
|
|
|
1403
1403
|
|
|
1404
1404
|
def get_chat(self,
|
|
1405
|
-
text: str = None,
|
|
1406
|
-
history: str = '',
|
|
1407
|
-
summary: bool = False,
|
|
1408
|
-
get_context: bool = False,
|
|
1409
|
-
n_context: int = 4,
|
|
1410
|
-
return_context: bool = False,
|
|
1411
|
-
history_search: bool = False,
|
|
1412
|
-
smart_history_search: bool = False,
|
|
1413
|
-
model: str = None,
|
|
1414
|
-
include_context_meta: bool = False,
|
|
1415
|
-
custom_prompt: bool = False,
|
|
1416
|
-
temperature: int = 0,
|
|
1417
|
-
timeout: int = 300,
|
|
1418
|
-
image_path: str = None,
|
|
1419
|
-
image_url: str = None,
|
|
1420
|
-
vaults: List[str] = None,
|
|
1405
|
+
text: str = None, # The text to send to the LLM
|
|
1406
|
+
history: str = '', # The chat history to send to the LLM
|
|
1407
|
+
summary: bool = False, # Whether or not the LLM should return a summary of the text
|
|
1408
|
+
get_context: bool = False, # Whether or not the LLM should get context from the vault before responding
|
|
1409
|
+
n_context: int = 4, # How many items to return from the vault
|
|
1410
|
+
return_context: bool = False, # Whether or not the LLM should return the context in the response
|
|
1411
|
+
history_search: bool = False, # Whether or not the LLM should search the vector database with chat history as well as the text input
|
|
1412
|
+
smart_history_search: bool = False, # Whether or not the LLM should search the chat history for context using a custom prompt
|
|
1413
|
+
model: str = None, # The model to use for the LLM
|
|
1414
|
+
include_context_meta: bool = False, # Whether or not the LLM should see the context meta data in the context
|
|
1415
|
+
custom_prompt: bool = False, # Optionally inject your own custom prompt here
|
|
1416
|
+
temperature: int = 0, # The temperature to use for the LLM
|
|
1417
|
+
timeout: int = 300, # How long to wait for the LLM to respond
|
|
1418
|
+
image_path: str = None, # The path to an image to send to the LLM
|
|
1419
|
+
image_url: str = None, # The url of an image to send to the LLM
|
|
1420
|
+
vaults: Union[None, str, List[str], Dict] = None, # A vault name, list of vaults, or dict of vaults to search for context in
|
|
1421
1421
|
):
|
|
1422
1422
|
'''
|
|
1423
1423
|
Chat get response from OpenAI's ChatGPT.
|
|
@@ -1544,25 +1544,25 @@ class Vault:
|
|
|
1544
1544
|
|
|
1545
1545
|
|
|
1546
1546
|
def get_chat_stream(self,
|
|
1547
|
-
text: str = None,
|
|
1548
|
-
history: str = '',
|
|
1549
|
-
summary: bool = False,
|
|
1550
|
-
get_context: bool = False,
|
|
1551
|
-
n_context: int = 4,
|
|
1552
|
-
return_context: bool = False,
|
|
1553
|
-
history_search: bool = False,
|
|
1554
|
-
smart_history_search: bool = False,
|
|
1555
|
-
model: str = None,
|
|
1556
|
-
include_context_meta: bool = False,
|
|
1557
|
-
metatag: bool = False,
|
|
1558
|
-
metatag_prefixes: bool = False,
|
|
1559
|
-
metatag_suffixes: bool = False,
|
|
1560
|
-
custom_prompt: bool = False,
|
|
1561
|
-
temperature: int = 0,
|
|
1562
|
-
timeout: int = 300,
|
|
1563
|
-
image_path: str = None,
|
|
1564
|
-
image_url: str = None,
|
|
1565
|
-
vaults: List[str] = None,
|
|
1547
|
+
text: str = None, # The text to send to the LLM
|
|
1548
|
+
history: str = '', # The chat history to send to the LLM
|
|
1549
|
+
summary: bool = False, # Whether or not the LLM should return a summary of the text
|
|
1550
|
+
get_context: bool = False, # Whether or not the LLM should get context from the vault before responding
|
|
1551
|
+
n_context: int = 4, # How many items to return from the vault
|
|
1552
|
+
return_context: bool = False, # Whether or not the LLM should return the context in the response
|
|
1553
|
+
history_search: bool = False, # Whether or not the LLM should search the vector database with chat history as well as the text input
|
|
1554
|
+
smart_history_search: bool = False, # Whether or not the LLM should search the chat history for context using a custom prompt
|
|
1555
|
+
model: str = None, # The model to use for the LLM
|
|
1556
|
+
include_context_meta: bool = False, # Whether or not the LLM should see the context meta data in the context
|
|
1557
|
+
metatag: bool = False, # Legacy parameter, do not use
|
|
1558
|
+
metatag_prefixes: bool = False, # Legacy parameter, do not use
|
|
1559
|
+
metatag_suffixes: bool = False, # Legacy parameter, do not use
|
|
1560
|
+
custom_prompt: bool = False, # Optionally inject your own custom prompt here
|
|
1561
|
+
temperature: int = 0, # The temperature to use for the LLM
|
|
1562
|
+
timeout: int = 300, # How long to wait for the LLM to respond
|
|
1563
|
+
image_path: str = None, # The path to an image to send to the LLM
|
|
1564
|
+
image_url: str = None, # The url of an image to send to the LLM
|
|
1565
|
+
vaults: Union[None, str, List[str], Dict] = None, # A vault name, list of vaults, or dict of vaults to search for context in
|
|
1566
1566
|
):
|
|
1567
1567
|
'''
|
|
1568
1568
|
Always use this get_chat_stream() wrapped by either print_stream(), or cloud_stream()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|