Skip to content

Commit cbd7ae1

Browse files
committed
updated frontend
1 parent 9e85f37 commit cbd7ae1

4 files changed

Lines changed: 31 additions & 6 deletions

File tree

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,24 @@ clustered_df, model_stats = label(
177177
)
178178
```
179179

180+
### Extract-Only (No Clustering)
181+
182+
If you only want extracted properties (extraction → JSON parsing → validation) without clustering/metrics:
183+
184+
```python
185+
from stringsight import extract_properties_only
186+
187+
dataset = extract_properties_only(
188+
df,
189+
method="single_model",
190+
model_name="gpt-4.1-mini",
191+
output_dir="results/extract_only",
192+
# If True (default), StringSight raises if 0 properties remain after validation.
193+
# If False, it returns an empty list of properties instead.
194+
fail_on_empty_properties=False,
195+
)
196+
```
197+
180198
## Output
181199

182200
**Output dataframe columns:**
@@ -238,3 +256,12 @@ See the [documentation](https://lisadunlap.github.io/StringSight/) for:
238256
## Contributing
239257

240258
PRs very welcome, especially if I forgot to include something important in the readme. Questions or issues? [Open an issue on GitHub](https://github.com/lisadunlap/stringsight/issues)
259+
260+
### Tests
261+
262+
Some lightweight development tests live in `tests/` and can be run directly, e.g.:
263+
264+
```bash
265+
python tests/test_prompts_metadata_unit.py
266+
python tests/test_airline_demo_prompt_generation.py
267+
```

alembic/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from stringsight.config import settings
1212
from stringsight.database import Base
13-
from stringsight.models import User, Job # Import models to register them
13+
from stringsight.db_models import User, Job # Import models to register them
1414

1515
# this is the Alembic Config object, which provides
1616
# access to the values within the .ini file in use.

check_jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""Quick script to check recent jobs in the database."""
33

44
from stringsight.database import SessionLocal
5-
from stringsight.models.job import Job
5+
from stringsight.db_models.job import Job
66
from datetime import datetime
77

88
db = SessionLocal()

pyproject.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@ authors = [
1010
]
1111
description = "Explain Large Language Model Behavior Patterns"
1212
readme = "README.md"
13-
requires-python = ">=3.8"
13+
requires-python = ">=3.10"
1414
classifiers = [
1515
"Development Status :: 3 - Alpha",
1616
"Intended Audience :: Developers",
1717
"Intended Audience :: Science/Research",
1818
"Topic :: Scientific/Engineering :: Artificial Intelligence",
1919
"License :: OSI Approved :: MIT License",
2020
"Programming Language :: Python :: 3",
21-
"Programming Language :: Python :: 3.8",
22-
"Programming Language :: Python :: 3.9",
2321
"Programming Language :: Python :: 3.10",
2422
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
2524
]
2625
dependencies = [
2726
"pandas>=2.0.0",
@@ -49,7 +48,6 @@ dependencies = [
4948
"psycopg2-binary>=2.9.0",
5049
"redis>=5.0.0",
5150
"celery[redis]>=5.3.0",
52-
"boto3>=1.34.0",
5351
]
5452

5553
[project.optional-dependencies]

0 commit comments

Comments
 (0)