Compare commits
No commits in common. "main" and "v0.1.4" have entirely different histories.
21
README.md
21
README.md
|
@ -16,23 +16,6 @@ Go package for automated evaluation of academic papers using LLM-based criteria
|
||||||
go get gitea.r8z.us/stwhite/paperprocessor
|
go get gitea.r8z.us/stwhite/paperprocessor
|
||||||
```
|
```
|
||||||
|
|
||||||
## API Reference
|
|
||||||
|
|
||||||
### ProcessFile
|
|
||||||
`func ProcessFile(inputPath, outputPath, criteriaPath string, config Config, debug bool) error`
|
|
||||||
|
|
||||||
Processes papers from input JSON file and writes results to output JSON file
|
|
||||||
|
|
||||||
Parameters:
|
|
||||||
- inputPath: Path to input JSON file containing papers array
|
|
||||||
- outputPath: Path to write processing results JSON
|
|
||||||
- criteriaPath: Path to text file with evaluation criteria
|
|
||||||
- config: Configuration settings for API and processing
|
|
||||||
- debug: Enable debug logging when true
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
- error: Processing error or nil if successful
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Basic Configuration
|
### Basic Configuration
|
||||||
|
@ -54,11 +37,7 @@ err := paperprocessor.ProcessFile(
|
||||||
"output/results.json",
|
"output/results.json",
|
||||||
"criteria.txt",
|
"criteria.txt",
|
||||||
config,
|
config,
|
||||||
true, // debug mode
|
|
||||||
)
|
)
|
||||||
if err != nil {
|
|
||||||
log.Fatal("Processing failed:", err)
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Input Formats
|
## Input Formats
|
||||||
|
|
|
@ -124,8 +124,7 @@ type decisionResult struct {
|
||||||
|
|
||||||
func (p *Processor) evaluatePaper(paper Paper, criteria string) (*decisionResult, error) {
|
func (p *Processor) evaluatePaper(paper Paper, criteria string) (*decisionResult, error) {
|
||||||
prompt := fmt.Sprintf(`Please evaluate the following academic paper against the provided criteria.
|
prompt := fmt.Sprintf(`Please evaluate the following academic paper against the provided criteria.
|
||||||
Respond with either "ACCEPT" or "REJECT" followed by a brief explanation of your decision.
|
Respond with either "ACCEPT" or "REJECT" followed by a brief explanation of your decision. Please do not use markdown emphasis.
|
||||||
Do not use markdown emphasis in your response. Keep your response clear and concise.
|
|
||||||
Your response should be in the format:
|
Your response should be in the format:
|
||||||
DECISION
|
DECISION
|
||||||
Explanation
|
Explanation
|
||||||
|
|
Loading…
Reference in New Issue