Skip to content

Commit

Permalink
fix modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasilije1990 committed Jan 19, 2025
1 parent 2100122 commit 34f3a97
Show file tree
Hide file tree
Showing 5 changed files with 180 additions and 158 deletions.
8 changes: 1 addition & 7 deletions Dockerfile.modal
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,11 @@ COPY pyproject.toml poetry.lock /app/


RUN pip install poetry

# Don't create virtualenv since docker is already isolated
RUN poetry config virtualenvs.create false

# Install the dependencies
RUN poetry install --all-extras --no-root --without dev

RUN pip install python-dotenv
RUN pip install transformers
RUN pip install swebench
RUN pip install sentencepiece
RUN pip install protobuf


COPY cognee/ /app/cognee
Expand Down
2 changes: 1 addition & 1 deletion cognee-mcp/cognee_mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ async def handle_call_tool(

search_query = arguments.get("query")

search_results = await cognee.search(SearchType.INSIGHTS, query_text=search_query)
search_results = await cognee.search(SearchType.COMPLETION, query_text=search_query)

results = retrieved_edges_to_string(search_results)

Expand Down
3 changes: 2 additions & 1 deletion eval_with_modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
@app.function(
image=image,
gpu="T4",
concurrency_limit=5
concurrency_limit=5,
timeout=9000000
)
async def run_single_repo(instance_data: dict, disable_cognee: bool = False):
import os
Expand Down
Loading

0 comments on commit 34f3a97

Please sign in to comment.