diff --git a/CHANGELOG.md b/CHANGELOG.md index f9ed1c2..689b734 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [1.30.0](https://github.com/rpidanny/darwin/compare/v1.29.5...v1.30.0) (2024-07-04) + +### Features + +* add question flag to ask questions about papers ([#76](https://github.com/rpidanny/darwin/issues/76)) ([73afa49](https://github.com/rpidanny/darwin/commit/73afa49d7178802d198956f1fe2e8964c0722741)) + ## [1.29.5](https://github.com/rpidanny/darwin/compare/v1.29.4...v1.29.5) (2024-07-04) ### Bug Fixes diff --git a/README.md b/README.md index 8673135..a53808b 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ $ npm install -g @rpidanny/darwin $ darwin COMMAND running command... $ darwin (--version) -@rpidanny/darwin/1.29.5 linux-x64 node-v20.15.0 +@rpidanny/darwin/1.30.0 linux-x64 node-v20.15.0 $ darwin --help [COMMAND] USAGE $ darwin COMMAND diff --git a/docs/chat.md b/docs/chat.md index 175c6fb..58cfc4a 100644 --- a/docs/chat.md +++ b/docs/chat.md @@ -27,4 +27,4 @@ EXAMPLES $ darwin chat ``` -_See code: [src/commands/chat/index.ts](https://github.com/rpidanny/darwin/blob/v1.29.5/src/commands/chat/index.ts)_ +_See code: [src/commands/chat/index.ts](https://github.com/rpidanny/darwin/blob/v1.30.0/src/commands/chat/index.ts)_ diff --git a/docs/config.md b/docs/config.md index 50f0a8e..14ad660 100644 --- a/docs/config.md +++ b/docs/config.md @@ -24,7 +24,7 @@ EXAMPLES $ darwin config get ``` -_See code: [src/commands/config/get.ts](https://github.com/rpidanny/darwin/blob/v1.29.5/src/commands/config/get.ts)_ +_See code: [src/commands/config/get.ts](https://github.com/rpidanny/darwin/blob/v1.30.0/src/commands/config/get.ts)_ ## `darwin config set` @@ -41,4 +41,4 @@ EXAMPLES $ darwin config set ``` -_See code: [src/commands/config/set.ts](https://github.com/rpidanny/darwin/blob/v1.29.5/src/commands/config/set.ts)_ +_See code: [src/commands/config/set.ts](https://github.com/rpidanny/darwin/blob/v1.30.0/src/commands/config/set.ts)_ diff --git a/docs/download.md b/docs/download.md index 5a5f9b5..e089fd0 100644 --- a/docs/download.md +++ b/docs/download.md @@ -31,4 +31,4 @@ EXAMPLES $ darwin download papers "crispr cas9" --output papers/ --count 100 --log-level debug ``` -_See code: [src/commands/download/papers.ts](https://github.com/rpidanny/darwin/blob/v1.29.5/src/commands/download/papers.ts)_ +_See code: [src/commands/download/papers.ts](https://github.com/rpidanny/darwin/blob/v1.30.0/src/commands/download/papers.ts)_ diff --git a/docs/search.md b/docs/search.md index 34333fe..2321a44 100644 --- a/docs/search.md +++ b/docs/search.md @@ -13,7 +13,7 @@ Search and export papers containing accession numbers to a CSV file. ``` USAGE $ darwin search accession KEYWORDS [-l TRACE|DEBUG|INFO|WARN|ERROR|FATAL] [-c NUMBER] [-p NUMBER] [-o PATH] [-a - REGEX] [-s] [--legacy] [-h] [-S] [--llm openai|ollama] + REGEX] [-s] [--legacy] [-h] [-S] [--llm openai|ollama] [-q STRING] ARGUMENTS KEYWORDS The keywords to search for. (Example: "crispr cas9") @@ -28,6 +28,7 @@ FLAGS -o, --output=PATH [default: .] Destination for the CSV file. Specify folder path for auto-generated filename or file path for direct use. -p, --concurrency=NUMBER [default: 10] The number papers to process in parallel. + -q, --question=STRING The question to ask the language model about the text content. -s, --skip-captcha Skip captcha on paper URLs. Note: Google Scholar captcha still needs to be solved. --legacy Enable legacy processing which extracts text only from the main URL. The new method attempts to extract text from the source URLs (pdf or html) and falls back @@ -48,7 +49,7 @@ FLAG DESCRIPTIONS Summaries are generated using LLM. Ensure LLMs are configured by running `darwin config set`. ``` -_See code: [src/commands/search/accession.ts](https://github.com/rpidanny/darwin/blob/v1.29.5/src/commands/search/accession.ts)_ +_See code: [src/commands/search/accession.ts](https://github.com/rpidanny/darwin/blob/v1.30.0/src/commands/search/accession.ts)_ ## `darwin search papers KEYWORDS` @@ -57,7 +58,7 @@ Searches and exports research papers based on keywords to a CSV file. ``` USAGE $ darwin search papers KEYWORDS [-l TRACE|DEBUG|INFO|WARN|ERROR|FATAL] [-c NUMBER] [-p NUMBER] [-o PATH] [-f - REGEX] [-s] [--legacy] [-h] [-S] [--llm openai|ollama] + REGEX] [-s] [--legacy] [-h] [-S] [--llm openai|ollama] [-q STRING] ARGUMENTS KEYWORDS The keywords to search for. (Example: "crispr cas9") @@ -72,6 +73,7 @@ FLAGS -o, --output=PATH [default: .] Destination for the CSV file. Specify folder path for auto-generated filename or file path for direct use. -p, --concurrency=NUMBER [default: 10] The number papers to process in parallel. + -q, --question=STRING The question to ask the language model about the text content. -s, --skip-captcha Skip captcha on paper URLs. Note: Google Scholar captcha still needs to be solved. --legacy Enable legacy processing which extracts text only from the main URL. The new method attempts to extract text from the source URLs (pdf or html) and falls back to the main URL. @@ -93,4 +95,4 @@ FLAG DESCRIPTIONS Summaries are generated using LLM. Ensure LLMs are configured by running `darwin config set`. ``` -_See code: [src/commands/search/papers.ts](https://github.com/rpidanny/darwin/blob/v1.29.5/src/commands/search/papers.ts)_ +_See code: [src/commands/search/papers.ts](https://github.com/rpidanny/darwin/blob/v1.30.0/src/commands/search/papers.ts)_ diff --git a/docs/update.md b/docs/update.md index 8ef1ba5..f26e040 100644 --- a/docs/update.md +++ b/docs/update.md @@ -23,4 +23,4 @@ EXAMPLES $ darwin update ``` -_See code: [src/commands/update/index.ts](https://github.com/rpidanny/darwin/blob/v1.29.5/src/commands/update/index.ts)_ +_See code: [src/commands/update/index.ts](https://github.com/rpidanny/darwin/blob/v1.30.0/src/commands/update/index.ts)_ diff --git a/package-lock.json b/package-lock.json index fa5657f..89e6c72 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@rpidanny/darwin", - "version": "1.29.5", + "version": "1.30.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@rpidanny/darwin", - "version": "1.29.5", + "version": "1.30.0", "license": "MIT", "dependencies": { "@json2csv/node": "^7.0.6", diff --git a/package.json b/package.json index cb32ad5..eba0019 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@rpidanny/darwin", "description": "An elegant CLI wizard enhancing biotech research efficiency, with adaptable features for other domains, albeit with minor constraints.", - "version": "1.29.5", + "version": "1.30.0", "author": "Abhishek ", "bin": { "darwin": "./bin/run.js"