Skip to content

Commit

Permalink
Merge pull request #72 from wandb/fix/v1.3/dependencies
Browse files Browse the repository at this point in the history
Fix: Update v1.2 dependencies
  • Loading branch information
morganmcg1 authored Apr 24, 2024
2 parents c6b98f5 + c92f91c commit 75928fa
Show file tree
Hide file tree
Showing 25 changed files with 2,803 additions and 2,166 deletions.
4,491 changes: 2,679 additions & 1,812 deletions poetry.lock

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ discord = "^2.3.2"
markdown = "^3.5.1"
fastapi = "^0.109.2"
tree-sitter-languages = "^1.7.1"
cohere = "^4.32"
markdownify = "^0.11.6"
uvicorn = "^0.24.0"
zenpy = "^2.0.46"
Expand All @@ -43,11 +42,18 @@ langchain = "^0.1.5"
langchain-openai = "^0.0.5"
chromadb = "^0.4.22"
langchain-experimental = "^0.0.50"
simsimd = "^3.7.4"
simsimd = "3.7.7"
langchain-core = "^0.1.44"
langchain-cohere = "^0.1.3"

[tool.poetry.dev-dependencies]
#fasttext = {git = "https://github.com/cfculhane/fastText"} # FastText doesn't come with pybind11 and we need to use this workaround.

[tool.poetry.group.eval.dependencies]
ragas = "^0.1.7"
dataclasses-json = "^0.6.4"
llama-index = "^0.10.30"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(uvicorn wandbot.api.app:app --host="0.0.0.0" --port=8000) & \
(python -m wandbot.apps.slack -l en) & \
(python -m wandbot.apps.slack -l ja) & \
(python -m wandbot.apps.discord) & \
(python -m wandbot.apps.discord)
5 changes: 3 additions & 2 deletions src/wandbot/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
from datetime import datetime, timezone

import pandas as pd
import wandb
from fastapi import FastAPI

import wandb
from wandbot.api.routers import chat as chat_router
from wandbot.api.routers import database as database_router
from wandbot.api.routers import retrieve as retrieve_router
Expand Down Expand Up @@ -110,4 +111,4 @@ async def backup_db():
if __name__ == "__main__":
import uvicorn

uvicorn.run(app, host="localhost", port=8000)
uvicorn.run(app, host="localhost", port=8000)
Empty file.
251 changes: 0 additions & 251 deletions src/wandbot/apps/zendesk/__main__.py

This file was deleted.

27 changes: 0 additions & 27 deletions src/wandbot/apps/zendesk/config.py

This file was deleted.

14 changes: 0 additions & 14 deletions src/wandbot/apps/zendesk/extract_by_type.py

This file was deleted.

3 changes: 2 additions & 1 deletion src/wandbot/chat/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@
"""
from typing import List

from weave.monitoring import StreamTable

import wandb
from wandbot.chat.config import ChatConfig
from wandbot.chat.rag import RAGPipeline, RAGPipelineOutput
from wandbot.chat.schemas import ChatRequest, ChatResponse
from wandbot.database.schemas import QuestionAnswer
from wandbot.retriever import VectorStore
from wandbot.utils import Timer, get_logger
from weave.monitoring import StreamTable

logger = get_logger(__name__)

Expand Down
1 change: 1 addition & 0 deletions src/wandbot/chat/rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from langchain_community.callbacks import get_openai_callback
from pydantic import BaseModel

from wandbot.rag.query_handler import QueryEnhancer
from wandbot.rag.response_synthesis import ResponseSynthesizer
from wandbot.rag.retrieval import FusionRetrieval
Expand Down
Loading

0 comments on commit 75928fa

Please sign in to comment.