igbot-base 0.0.8__tar.gz → 0.0.9__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.
Files changed (22) hide show
  1. {igbot_base-0.0.8 → igbot_base-0.0.9}/PKG-INFO +1 -1
  2. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base/llm.py +1 -1
  3. igbot_base-0.0.9/igbot_base/retriever.py +24 -0
  4. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base.egg-info/PKG-INFO +1 -1
  5. {igbot_base-0.0.8 → igbot_base-0.0.9}/pyproject.toml +1 -1
  6. igbot_base-0.0.8/igbot_base/retriever.py +0 -11
  7. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base/__init__.py +0 -0
  8. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base/agent.py +0 -0
  9. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base/agent_response.py +0 -0
  10. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base/exception_handler.py +0 -0
  11. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base/llmmemory.py +0 -0
  12. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base/models.py +0 -0
  13. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base/persistable_memory.py +0 -0
  14. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base/prompt_template.py +0 -0
  15. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base/response_formats.py +0 -0
  16. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base/tool.py +0 -0
  17. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base/vectorstore.py +0 -0
  18. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base.egg-info/SOURCES.txt +0 -0
  19. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base.egg-info/dependency_links.txt +0 -0
  20. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base.egg-info/requires.txt +0 -0
  21. {igbot_base-0.0.8 → igbot_base-0.0.9}/igbot_base.egg-info/top_level.txt +0 -0
  22. {igbot_base-0.0.8 → igbot_base-0.0.9}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: igbot_base
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: Base classes for igbot
5
5
  Author-email: Igor Kopeć <igor.kopec95@gmail.com>
6
6
  License: LGPL-3.0-or-later
@@ -30,7 +30,7 @@ class Llm(ABC):
30
30
  history.revert_to_snapshot()
31
31
 
32
32
  def call(self, user_query: str, history: LlmMemory, params: dict) -> str:
33
- #history.set_snapshot()
33
+ history.set_snapshot()
34
34
  try:
35
35
  return self._call(user_query, history, params)
36
36
  except Exception as e:
@@ -0,0 +1,24 @@
1
+ from abc import ABC, abstractmethod
2
+
3
+
4
+ class RetrieverResponse:
5
+
6
+ def __init__(self, documents):
7
+ self.documents = documents
8
+
9
+ def get_content_list(self):
10
+ return [doc.page_content for doc in self.documents]
11
+
12
+ def get_content_string(self, delimiter: str):
13
+ contents = self.get_content_list()
14
+ return delimiter.join(contents)
15
+
16
+
17
+ class Retriever(ABC):
18
+
19
+ def __init__(self):
20
+ pass
21
+
22
+ @abstractmethod
23
+ def get_relevant_data(self, query: str) -> RetrieverResponse:
24
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: igbot_base
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: Base classes for igbot
5
5
  Author-email: Igor Kopeć <igor.kopec95@gmail.com>
6
6
  License: LGPL-3.0-or-later
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "igbot_base"
7
- version = "0.0.8"
7
+ version = "0.0.9"
8
8
  description = "Base classes for igbot"
9
9
  authors = [{name = "Igor Kopeć", email = "igor.kopec95@gmail.com"}]
10
10
  license={text="LGPL-3.0-or-later"}
@@ -1,11 +0,0 @@
1
- from abc import ABC, abstractmethod
2
-
3
-
4
- class Retriever(ABC):
5
-
6
- def __init__(self):
7
- pass
8
-
9
- @abstractmethod
10
- def get_relevant_data(self, query: str):
11
- pass
File without changes