ws-bom-robot-app 0.0.106__tar.gz → 0.0.107__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 (84) hide show
  1. {ws_bom_robot_app-0.0.106/ws_bom_robot_app.egg-info → ws_bom_robot_app-0.0.107}/PKG-INFO +1 -1
  2. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/setup.py +1 -1
  3. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/models/api.py +3 -0
  4. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/utils/chunker.py +77 -7
  5. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/db/base.py +3 -0
  6. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/db/chroma.py +4 -1
  7. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/db/faiss.py +4 -1
  8. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/db/qdrant.py +7 -4
  9. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/generator.py +1 -1
  10. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107/ws_bom_robot_app.egg-info}/PKG-INFO +1 -1
  11. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/MANIFEST.in +0 -0
  12. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/README.md +0 -0
  13. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/pyproject.toml +0 -0
  14. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/requirements.txt +0 -0
  15. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/setup.cfg +0 -0
  16. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/__init__.py +0 -0
  17. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/auth.py +0 -0
  18. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/config.py +0 -0
  19. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/cron_manager.py +0 -0
  20. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/__init__.py +0 -0
  21. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/agent_context.py +0 -0
  22. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/agent_description.py +0 -0
  23. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/agent_handler.py +0 -0
  24. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/agent_lcel.py +0 -0
  25. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/api.py +0 -0
  26. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/defaut_prompt.py +0 -0
  27. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/evaluator.py +0 -0
  28. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/feedbacks/__init__.py +0 -0
  29. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/feedbacks/feedback_manager.py +0 -0
  30. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/main.py +0 -0
  31. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/models/__init__.py +0 -0
  32. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/models/base.py +0 -0
  33. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/models/feedback.py +0 -0
  34. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/models/kb.py +0 -0
  35. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/nebuly_handler.py +0 -0
  36. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/providers/__init__.py +0 -0
  37. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/providers/llm_manager.py +0 -0
  38. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/tools/__init__.py +0 -0
  39. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/tools/models/__init__.py +0 -0
  40. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/tools/models/main.py +0 -0
  41. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/tools/tool_builder.py +0 -0
  42. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/tools/tool_manager.py +0 -0
  43. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/tools/utils.py +0 -0
  44. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/utils/__init__.py +0 -0
  45. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/utils/agent.py +0 -0
  46. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/utils/cleanup.py +0 -0
  47. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/utils/cms.py +0 -0
  48. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/utils/download.py +0 -0
  49. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/utils/print.py +0 -0
  50. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/utils/secrets.py +0 -0
  51. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/utils/webhooks.py +0 -0
  52. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/__init__.py +0 -0
  53. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/db/__init__.py +0 -0
  54. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/db/manager.py +0 -0
  55. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/__init__.py +0 -0
  56. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/api.py +0 -0
  57. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/azure.py +0 -0
  58. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/base.py +0 -0
  59. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/confluence.py +0 -0
  60. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/dropbox.py +0 -0
  61. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/gcs.py +0 -0
  62. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/github.py +0 -0
  63. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/googledrive.py +0 -0
  64. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/jira.py +0 -0
  65. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/manager.py +0 -0
  66. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/s3.py +0 -0
  67. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/sftp.py +0 -0
  68. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/sharepoint.py +0 -0
  69. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/shopify.py +0 -0
  70. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/sitemap.py +0 -0
  71. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/slack.py +0 -0
  72. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/integration/thron.py +0 -0
  73. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/loader/__init__.py +0 -0
  74. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/loader/base.py +0 -0
  75. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/loader/docling.py +0 -0
  76. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/llm/vector_store/loader/json_loader.py +0 -0
  77. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/main.py +0 -0
  78. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/subprocess_runner.py +0 -0
  79. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/task_manager.py +0 -0
  80. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app/util.py +0 -0
  81. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app.egg-info/SOURCES.txt +0 -0
  82. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app.egg-info/dependency_links.txt +0 -0
  83. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app.egg-info/requires.txt +0 -0
  84. {ws_bom_robot_app-0.0.106 → ws_bom_robot_app-0.0.107}/ws_bom_robot_app.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ws_bom_robot_app
3
- Version: 0.0.106
3
+ Version: 0.0.107
4
4
  Summary: A FastAPI application serving ws bom/robot/llm platform ai.
5
5
  Home-page: https://github.com/websolutespa/bom
6
6
  Author: Websolute Spa
@@ -4,7 +4,7 @@ _requirements = [line.split('#')[0].strip() for line in open("requirements.txt")
4
4
 
5
5
  setup(
6
6
  name="ws_bom_robot_app",
7
- version="0.0.106",
7
+ version="0.0.107",
8
8
  description="A FastAPI application serving ws bom/robot/llm platform ai.",
9
9
  long_description=open("README.md", encoding='utf-8').read(),
10
10
  long_description_content_type="text/markdown",
@@ -236,6 +236,9 @@ class RulesRequest(VectorDbRequest):
236
236
  rules: List[str]
237
237
 
238
238
  class KbRequest(VectorDbRequest):
239
+ chucking_method: Optional[str] = Field("recursive", validation_alias=AliasChoices("chunkingMethod","chunking_method"))
240
+ chuck_size: Optional[int] = Field(3_000, validation_alias=AliasChoices("chunkSize","chuckt_size"))
241
+ chunk_overlap: Optional[int] = Field(300, validation_alias=AliasChoices("chunkOverlap","chunk_overlap"))
239
242
  files: Optional[List[str]] = []
240
243
  integrations: Optional[List[LlmKbIntegration]] = []
241
244
  endpoints: Optional[List[LlmKbEndpoint]] = []
@@ -1,13 +1,17 @@
1
1
  from langchain_core.documents import Document
2
2
  from langchain_text_splitters import RecursiveCharacterTextSplitter
3
+ from langchain_text_splitters import MarkdownHeaderTextSplitter
3
4
 
4
5
  class DocumentChunker:
5
6
  @staticmethod
6
- def chunk(documents: list[Document]) -> list[Document]:
7
- return DocumentChunker.chunk_recursive(documents)
7
+ def chunk(documents: list[Document], chucking_method: str = "recursive", chunk_size: int=3_000, chunk_overlap: int=300) -> list[Document]:
8
+ if chucking_method == "recursive":
9
+ return DocumentChunker.chunk_recursive(documents, chunk_size=chunk_size, chunk_overlap=chunk_overlap)
10
+ elif chucking_method == "markdownHeader":
11
+ return DocumentChunker.chunk_markdown(documents, chunk_size=chunk_size, chunk_overlap=chunk_overlap)
8
12
 
9
13
  @staticmethod
10
- def chunk_recursive(documents: list[Document], chunk_size: int=3_000) -> list[Document]:
14
+ def chunk_recursive(documents: list[Document], chunk_size: int=3_000, chunk_overlap: int=300) -> list[Document]:
11
15
  """
12
16
  Recursively split documents into smaller chunks while preserving metadata.
13
17
 
@@ -17,16 +21,16 @@ class DocumentChunker:
17
21
 
18
22
  Args:
19
23
  documents (list[Document]): A list of Document objects to be chunked.
20
- chunk_size (int, optional): The maximum size of each chunk in characters.
24
+ chunk_size (int, optional): The maximum size of each chunk in characters.
21
25
  Defaults to 3,000.
22
26
 
23
27
  Returns:
24
- list[Document]: A list of Document objects where each document's content is
25
- at most chunk_size characters. Each chunk preserves the metadata from
28
+ list[Document]: A list of Document objects where each document's content is
29
+ at most chunk_size characters. Each chunk preserves the metadata from
26
30
  its original document.
27
31
 
28
32
  Notes:
29
- - Chunk overlap is automatically set to 10% of the chunk_size to maintain
33
+ - Chunk overlap is automatically set to 10% of the chunk_size to maintain
30
34
  context between chunks.
31
35
  - Documents smaller than or equal to chunk_size are returned unchanged.
32
36
  - Metadata from the original document is copied to all resulting chunks.
@@ -80,3 +84,69 @@ class DocumentChunker:
80
84
  )
81
85
  return chunked_documents
82
86
 
87
+ @staticmethod
88
+ def chunk_markdown(documents: list[Document], chunk_size: int=3_000, chunk_overlap: int=300) -> list[Document]:
89
+ """
90
+ Splits markdown documents based on headers and then into smaller chunks.
91
+
92
+ This function takes a list of Document objects containing markdown content and splits
93
+ them based on markdown headers (# H1, ## H2, ### H3, etc.). After splitting by headers,
94
+ it further chunks large sections using RecursiveCharacterTextSplitter to ensure no
95
+ chunk exceeds the specified size.
96
+
97
+ Args:
98
+ documents (list[Document]): A list of Document objects with markdown content.
99
+ chunk_size (int, optional): The maximum size of each chunk in characters.
100
+ Defaults to 3,000.
101
+
102
+ Returns:
103
+ list[Document]: A list of Document objects where each document represents a chunk.
104
+ Metadata includes the markdown header hierarchy and original document metadata.
105
+
106
+ Note:
107
+ - Headers are split at levels: H1 (#), H2 (##), and H3 (###)
108
+ - Header information is preserved in the metadata
109
+ - Large sections are further split to respect chunk_size limit
110
+ - Chunk overlap is set to 10% of chunk_size for context preservation
111
+ """
112
+ # Define headers to split on
113
+ headers_to_split_on = [
114
+ ("#", "h1"),
115
+ ("##", "h2"),
116
+ ("###", "h3"),
117
+ ("####", "h4"),
118
+ ]
119
+
120
+ markdown_splitter = MarkdownHeaderTextSplitter(
121
+ headers_to_split_on=headers_to_split_on,
122
+ strip_headers=False
123
+ )
124
+
125
+ # Secondary splitter for large sections
126
+ text_splitter = RecursiveCharacterTextSplitter(
127
+ chunk_size=chunk_size,
128
+ chunk_overlap=chunk_overlap
129
+ )
130
+
131
+ chunked_documents = []
132
+ for doc in documents:
133
+ # First split by markdown headers
134
+ md_chunks = markdown_splitter.split_text(doc.page_content)
135
+
136
+ # Then split large sections if needed
137
+ for md_chunk in md_chunks:
138
+ # Merge metadata from original doc and header metadata
139
+ merged_metadata = {**doc.metadata, **md_chunk.metadata}
140
+ if len(md_chunk.page_content) <= chunk_size:
141
+ chunked_documents.append(
142
+ Document(page_content=md_chunk.page_content, metadata=merged_metadata)
143
+ )
144
+ else:
145
+ # Further split large sections
146
+ sub_chunks = text_splitter.split_text(md_chunk.page_content)
147
+ for sub_chunk in sub_chunks:
148
+ chunked_documents.append(
149
+ Document(page_content=sub_chunk, metadata=merged_metadata)
150
+ )
151
+
152
+ return chunked_documents
@@ -107,6 +107,9 @@ class VectorDBStrategy(ABC):
107
107
  embeddings: Embeddings,
108
108
  documents: List[Document],
109
109
  storage_id: str,
110
+ chucking_method: str,
111
+ chunk_size: int,
112
+ chunk_overlap: int,
110
113
  **kwargs
111
114
  ) -> Optional[str]:
112
115
  pass
@@ -46,11 +46,14 @@ class Chroma(VectorDBStrategy):
46
46
  embeddings: Embeddings,
47
47
  documents: list[Document],
48
48
  storage_id: str,
49
+ chucking_method: str,
50
+ chunk_size: int,
51
+ chunk_overlap: int,
49
52
  **kwargs
50
53
  ) -> Optional[str]:
51
54
  try:
52
55
  documents = self._remove_empty_documents(documents)
53
- chunked_docs = DocumentChunker.chunk(documents)
56
+ chunked_docs = DocumentChunker.chunk(documents, chucking_method, chunk_size, chunk_overlap)
54
57
  batches = self._batch_documents_by_tokens(chunked_docs)
55
58
  logging.info(f"documents: {len(documents)}, after chunking: {len(chunked_docs)}, processing batches: {len(batches)}")
56
59
  _instance: CHROMA = None
@@ -30,11 +30,14 @@ class Faiss(VectorDBStrategy):
30
30
  embeddings: Embeddings,
31
31
  documents: list[Document],
32
32
  storage_id: str,
33
+ chucking_method: str,
34
+ chunk_size: int,
35
+ chunk_overlap: int,
33
36
  **kwargs
34
37
  ) -> Optional[str]:
35
38
  try:
36
39
  documents = self._remove_empty_documents(documents)
37
- chunked_docs = DocumentChunker.chunk(documents)
40
+ chunked_docs = DocumentChunker.chunk(documents, chucking_method, chunk_size, chunk_overlap)
38
41
  batches = self._batch_documents_by_tokens(chunked_docs)
39
42
  logging.info(f"documents: {len(documents)}, after chunking: {len(chunked_docs)}, processing batches: {len(batches)}")
40
43
  _instance: FAISS = None
@@ -14,14 +14,17 @@ class Qdrant(VectorDBStrategy):
14
14
  embeddings: Embeddings,
15
15
  documents: list[Document],
16
16
  storage_id: str,
17
+ chucking_method: str,
18
+ chunk_size: int,
19
+ chunk_overlap: int,
17
20
  **kwargs
18
21
  ) -> Optional[str]:
19
22
  try:
20
23
  documents = self._remove_empty_documents(documents)
21
- chunked_docs = DocumentChunker.chunk(documents)
24
+ chunked_docs = DocumentChunker.chunk(documents, chucking_method, chunk_size, chunk_overlap)
22
25
  batches = self._batch_documents_by_tokens(chunked_docs)
23
26
  logging.info(f"documents: {len(documents)}, after chunking: {len(chunked_docs)}, processing batches: {len(batches)}")
24
- _instance: QDRANT = None
27
+ _instance: QDRANT = None
25
28
  if not os.path.exists(storage_id):
26
29
  os.makedirs(storage_id)
27
30
 
@@ -45,10 +48,10 @@ class Qdrant(VectorDBStrategy):
45
48
  # add a small delay to avoid rate limiting
46
49
  if i < len(batches) - 1: # except last batch
47
50
  await asyncio.sleep(1)
48
- if _instance:
51
+ if _instance:
49
52
  self._clear_cache(storage_id)
50
53
  logging.info(f"Successfully created {Qdrant.__name__} index with {len(chunked_docs)} total documents")
51
- return storage_id
54
+ return storage_id
52
55
  except Exception as e:
53
56
  logging.error(f"{Qdrant.__name__} create error: {e}")
54
57
  raise e
@@ -112,7 +112,7 @@ async def kb(rq: KbRequest) -> VectorDbResponse:
112
112
  db_file_path = await aiofiles.os.wrap(shutil.make_archive)(
113
113
  os.path.join(_config.robot_data_folder, _config.robot_data_db_folder, _config.robot_data_db_folder_out, db_name),
114
114
  "zip",
115
- await VectorDbManager.get_strategy(rq.vector_type).create(rq.embeddings(), documents, store_path, return_folder_path=True)
115
+ await VectorDbManager.get_strategy(rq.vector_type).create(rq.embeddings(), documents, store_path, rq.chucking_method, rq.chuck_size, rq.chunk_overlap, return_folder_path=True)
116
116
  )
117
117
  return VectorDbResponse(file = os.path.basename(db_file_path), vector_type=rq.vector_type)
118
118
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ws_bom_robot_app
3
- Version: 0.0.106
3
+ Version: 0.0.107
4
4
  Summary: A FastAPI application serving ws bom/robot/llm platform ai.
5
5
  Home-page: https://github.com/websolutespa/bom
6
6
  Author: Websolute Spa