Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre committed Apr 18, 2024
1 parent 5c11493 commit 9ac4d66
Show file tree
Hide file tree
Showing 6 changed files with 966 additions and 1,049 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,5 @@ jobs:
environments: ${{ matrix.environment }}
frozen: true

- name: Install ragger-duck
run: pip install --no-deps -e .
shell: pixi run bash -e {0}

- name: Run tests
run: pixi run -e ${{ matrix.environment }} test-ragger-duck
8 changes: 2 additions & 6 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,17 @@
import json
import logging
import os
import sys
from importlib import import_module
from pathlib import Path

import joblib
import resources as res
from fastapi import FastAPI, Request, WebSocket, WebSocketDisconnect
from fastapi.responses import FileResponse
from fastapi.staticfiles import StaticFiles
from fastapi.templating import Jinja2Templates
from llama_cpp import Llama
from sentence_transformers import CrossEncoder

sys.path.append(str(Path(__file__).parent.parent))
import resources as res
from schemas import WSMessage
from sentence_transformers import CrossEncoder

from ragger_duck.prompt import BasicPromptingStrategy
from ragger_duck.retrieval import RetrieverReranker
Expand Down
5 changes: 0 additions & 5 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

import sys
from pathlib import Path

sys.path.append(str(Path(__file__).parent.parent))

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
from ragger_duck import __version__
Expand Down
Loading

0 comments on commit 9ac4d66

Please sign in to comment.