-
Notifications
You must be signed in to change notification settings - Fork 44
Support for batch suggest operations for CLI commands #663
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
1825801
Add initial support for batched operations for suggest and index CLI …
juhoinkinen 933990b
Use common helper function for output of suggest and index commands
juhoinkinen 5064a48
Ensure tests fail if 'text' with wrong type ends up to dummy backend
juhoinkinen 47423e5
Fix index command by using DocumentList in batch functions instead of…
juhoinkinen 37ece6c
Add suggest-batch REST method
juhoinkinen 294baab
Use common SuggestParameters via reference in suggest method too
juhoinkinen 49931f8
Fix & improve testing of suggest CLI cmd with file input; adapt the c…
juhoinkinen 74a9b80
Fix import order
juhoinkinen 4919e03
Add tests for applying transform in suggest calls
juhoinkinen 741494a
Apply transform to document batch on project level
juhoinkinen e6cf0d3
Use common _suggest function in REST methods
juhoinkinen dc7e868
Define error function for not supported language
juhoinkinen ba1a951
Merge branch 'master' into issue579-batch-suggest-operation
juhoinkinen b6558f8
Add optional id field to suggest-batch REST method
juhoinkinen 47da0e1
Remove superfluous implementation of _suggest_batch fn in dummy backend
juhoinkinen 1ebedde
Refactor to address complexity issue by CodeClimate
juhoinkinen 45d6ed1
Refactor again
juhoinkinen 0767d10
Fix typo
juhoinkinen e49e91f
Add swagger tests for 404 & 503 cases in suggest-batch request
juhoinkinen b8a411f
Remove debug message showing number of documents in suggest batch
juhoinkinen 77d5266
Support "-" as file path in suggest CLI command for stdin
juhoinkinen 53e39d2
Open text documents using generator instead of list in CLI suggest fn
juhoinkinen 1a5af59
Implement minibatching of documents in suggest fn in project module
juhoinkinen f32621c
Revert commits for REST API changes as it's better to have own PR for…
juhoinkinen bdac84e
Remove unnecessary stdin mocking from CLI suggest tests
juhoinkinen 395b26f
Add test for CLI suggest cmd for giving both real file and "-"
juhoinkinen 63edc53
Rename dummy loop variable to _
juhoinkinen 64bc203
Return generator of suggestions instead of list from suggest_batch
juhoinkinen 017b9d1
Add BatchingDocumentCorpus
juhoinkinen 49c06a6
Use BatchingDocumentCorpus in suggest, index, eval & optimize CLI cmds
juhoinkinen 365dbcd
Add document batching method to DocumentCorpus class & basic test for it
juhoinkinen ba31310
Add evaluate_many() method to EvaluationBatch and use it in CLI cmds
juhoinkinen b4c059e
Turn DocumentCorpus.doc_batches() method to property with a constant …
juhoinkinen 9e1c272
Remove single-text versions of suggest methods
juhoinkinen ec16a21
Refine document batching test
juhoinkinen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use BatchingDocumentCorpus in suggest, index, eval & optimize CLI cmds
- Loading branch information
commit 49c06a6e7dea0a0521b9fa1df3162c34fb1e446a
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.