Skip to content

Commit 3d80907

Browse files
authored
Use ragstack-colbert and ragstack-langchain types in ragulate (#632)
1 parent b4430e9 commit 3d80907

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

libs/ragulate/colbert_chunk_size_and_k.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
batch_size = 640
2727

28-
astra_token = os.getenv("ASTRA_DB_TOKEN")
29-
database_id = os.getenv("ASTRA_DB_ID")
28+
astra_token = os.environ["ASTRA_DB_TOKEN"]
29+
database_id = os.environ["ASTRA_DB_ID"]
3030
keyspace = "colbert"
3131

3232

@@ -38,7 +38,7 @@
3838

3939

4040
def get_embedding_model(chunk_size: int) -> ColbertEmbeddingModel:
41-
return ColbertEmbeddingModel(doc_maxlen=chunk_size, batch_size=batch_size)
41+
return ColbertEmbeddingModel(doc_maxlen=chunk_size, chunk_batch_size=batch_size)
4242

4343

4444
def get_database(chunk_size: int) -> CassandraDatabase:

libs/ragulate/poetry.lock

+6-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/ragulate/pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ types-seaborn = "^0.13.2"
4242
types-setuptools = "^70.0.0"
4343
types-tqdm = ">=4.66.0"
4444
pandas-stubs = ">=2.2.2"
45-
ragstack-ai-colbert = "^1.0.5"
45+
ragstack-ai-colbert = "^1.0.6"
4646
ragstack-ai-langchain = "^1.4.0"
4747

4848
[build-system]
@@ -62,6 +62,5 @@ show_error_codes = true
6262
show_error_context = true
6363

6464
[[tool.mypy.overrides]]
65-
# TODO: remove ragstack exclusions once packages containing py.typed are published
66-
module = "trulens_eval.*,plotly.*,cerberus.*,transformers.*,ragstack_colbert.*,ragstack_langchain.*"
65+
module = "trulens_eval.*,plotly.*,cerberus.*,transformers.*"
6766
ignore_missing_imports = true

0 commit comments

Comments
 (0)