Production-grade-RAG
Production-grade Retrieval-Augmented Generation (RAG) API built with FastAPI, LangChain, OpenAI, and Qdrant.
파일 탐색기
- ci.yml
- docker-compose.yml
- Dockerfile
- __init__.py
- error_handler.py
- logging.py
- __init__.py
- documents.py
- health.py
- query.py
- __init__.py
- app.py
- __init__.py
- document_loader.py
- embeddings.py
- rag_chain.py
- vector_store.py
- __init__.py
- schemas.py
- streamlit_app.py
- __init__.py
- logger.py
- __init__.py
- config.py
- test_api.py
- test_document_loader.py
- test_rag_chain.py
- test_vector_store.py
- __init__.py
- conftest.py
- .gitignore
- Makefile
- pyproject.toml
- README.md
- .gitignore
- .python-version
- custom_types.py
- data_loader.py
- doc.md
- main.py
- pyproject.toml
- README.md
- streamlit_app.py
- uv.lock
- vector_db.py
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
docker compose
설명 보기 ▼
docker compose
Run and manage multi container Docker applications.
docker compose ps
List all running containers:
docker compose up {{[-d|--detach]}}
Create and start all containers in the background using a `docker-compose.yml` file from the current directory:
docker compose up --build
Start all containers, rebuild if necessary:
pytest
설명 보기 ▼
pytest
Python 테스트 실행.
더 많은 정보: <https://docs.pytest.org/en/latest/how-to/usage.html>.
pytest {{path/to/test_file1.py path/to/test_file2.py ...}}
특정 파일에서 테스트 실행:
pytest -k {{expression}}
특정 [k]eyword 표현식과 일치하는 테스트 실행:
pytest {{[-x|--exitfirst]}}
테스트가 실패하거나 오류가 발생하면 즉시 종료:
python
설명 보기 ▼
python
Python 언어 인터프리터.
더 많은 정보: <https://docs.python.org/using/cmdline.html>.
python
REPL(대화형 셸) 시작:
python {{path/to/file.py}}
특정 Python 파일 실행:
python -i {{path/to/file.py}}
특정 Python 파일 실행 후 REPL 시작:
ruff check
설명 보기 ▼
ruff check
An extremely fast Python linter. `check` is the default command - it can be omitted everywhere.
If no files or directories are specified, the current working directory is used by default.
ruff check {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}
Run the linter on the given files or directories:
ruff check --fix
Apply the suggested fixes, modifying the files in-place:
ruff check --watch
Run the linter and re-lint on change:
