Skip to content

Commit 699b467

Browse files
committed
feat: add package structure
1 parent 59fafc4 commit 699b467

7 files changed

Lines changed: 1484 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea

contextplus/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from contextplus.main import context

main.py renamed to contextplus/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import time
22

3-
import wiki
4-
import model
3+
from contextplus import model, wiki
54

65

76
def context(query, n_wiki_pages=5, n_top_chunks=8, min_summary_length=100, max_summary_length=200, verbose=False):
File renamed without changes.
File renamed without changes.

poetry.lock

Lines changed: 1464 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[tool.poetry]
2+
name = "contextplus"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Florian Wunderlich"]
6+
readme = "README.md"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.11"
10+
wikipedia = "^1.4.0"
11+
transformers = "^4.40.2"
12+
sentence-transformers = "^2.7.0"
13+
14+
15+
[build-system]
16+
requires = ["poetry-core"]
17+
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)