Skip to content

Commit a12ad01

Browse files
committed
fix
1 parent 68170c4 commit a12ad01

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ TIMEOUT=300
4040
## CHUNKING CONFIG
4141
CONTEXT_CHUNK_SIZE=1000
4242
TIKTOKEN_MODEL=gpt-4
43+
ENABLE_BATCH_PROCESSING=true
4344

4445
## QDRANT
4546
QDRANT_MODE=memory # or cloud or docker

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ crewai install
6161
* `TIMEOUT`: The LLM timeout (optional).
6262
* `CONTEXT_CHUNK_SIZE`: the chunks dimension if your repo is large
6363
* `TIKTOKEN_MODEL`: [`tiktoken`](https://github.com/openai/tiktoken) is the OpenAI tokenizer. It counts tokens corresponding to a specific model in the OpenAI API. This is usually a good approximation for all LLMs.
64+
* `ENABLE_BATCH_PROCESSING`: Default *true*. If *false* you force the crew to **NOT USE** chunking.
6465
* `QDRANT_MODE`: The Qdrant mode (e.g., `memory`, `cloud`, `docker`).
6566
* `QDRANT_HOST`: The Qdrant host (required for cloud mode).
6667
* `QDRANT_API_KEY`: The Qdrant API key (required for cloud mode).

src/code_explainer/crew.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def prepare_inputs(self, inputs):
7171
if chunks:
7272
inputs["code_chunks"] = chunks
7373
inputs["total_chunks"] = len(chunks)
74-
print(f"Codice diviso in {len(chunks)} chunk per l'elaborazione")
74+
# print(f"Code divided into {len(chunks)} chunks for processing")
7575
return inputs
7676

7777
def _read_codebase(self, code_path: str) -> Dict[str, str]:

streamlit_app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def run_crew(repository_url, local_path, diagram_type, output_format, sonarqube_
220220
llm_config,
221221
local_dir,
222222
output_dir,
223+
chunking_config
223224
)
224225

225226
# Visualization

0 commit comments

Comments
 (0)