Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass model parameters to KB #179

Merged
merged 4 commits into from
Feb 19, 2025
Merged

Pass model parameters to KB #179

merged 4 commits into from
Feb 19, 2025

Conversation

ea-rus
Copy link
Contributor

@ea-rus ea-rus commented Dec 25, 2024

Allow to pass runtime parameters to embedding model of KB

kb = con.knowledge_bases.my_kb
kb.insert(df, params={'model': {'partition_size': 100}})

Dependent on: mindsdb/mindsdb#10326

@ea-rus ea-rus requested a review from tmichaeldb December 25, 2024 14:45
Copy link

github-actions bot commented Dec 25, 2024

Coverage

Coverage Report
FileStmtsMissCoverMissing
mindsdb_sdk
   agents.py2115673%33, 101, 104, 107, 110, 118, 126, 144, 162, 172, 175, 179, 181, 183, 185, 187, 189, 251, 264, 275, 286, 290–305, 317, 326–330, 337–338, 384, 392–393, 443, 492–493, 496, 503, 524–526, 530–534
   databases.py45296%109, 137
   handlers.py39197%77
   jobs.py97793%40, 52, 80, 84, 146–149
   knowledge_bases.py1201290%53–56, 122, 145, 174, 178, 182, 204–208, 218
   ml_engines.py42393%94, 126, 128
   models.py2101991%109, 140–141, 222, 231, 233, 303, 339, 348, 372, 397, 491, 499, 518, 534, 542, 567, 571, 584
   projects.py63198%160
   query.py13192%14
   skills.py53394%43, 45, 49
   tables.py1301588%140–142, 145, 165, 192, 203–204, 209, 224, 227, 321, 342–347, 356, 376
   views.py37295%105, 138
mindsdb_sdk/connectors
   rest_api.py2555280%19–29, 35–36, 51, 55, 58–59, 79–81, 102, 105, 112–115, 148–156, 177–178, 213–216, 230–231, 285–290, 294–306
mindsdb_sdk/utils
   agents.py50492%72, 79–81
   mind.py47470%1–128
   openai.py853065%37–40, 83–85, 107, 148–158, 215–216, 234–240, 258–276
   table_schema.py21210%1–54
TOTAL160527683% 

Tests Skipped Failures Errors Time
28 0 💤 0 ❌ 0 🔥 10.975s ⏱️

@ea-rus ea-rus merged commit f6bf8ce into main Feb 19, 2025
6 checks passed
@ea-rus ea-rus deleted the kb-model-params branch February 19, 2025 10:07
@mindsdb mindsdb locked and limited conversation to collaborators Feb 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: merged
Development

Successfully merging this pull request may close these issues.

1 participant