clineruels and go.sum got left out.
This commit is contained in:
parent
9329294305
commit
9e0a7e594d
48
.clinerules
48
.clinerules
|
@ -1,47 +1 @@
|
|||
## Here are the api signatures for arxiva
|
||||
### FetchPapers(startDate, endDate, query string, maxResults int) ([]Paper, error)
|
||||
startDate: Start date in format "YYYYMMDD"
|
||||
endDate: End date in format "YYYYMMDD"
|
||||
query: Search query
|
||||
maxResults: Maximum number of results (1-2000)
|
||||
Fetches papers from arXiv API
|
||||
|
||||
### SaveToFile(papers []Paper, startDate, endDate, query string) error
|
||||
papers: Array of Paper structs
|
||||
startDate: Start date in format "YYYYMMDD"
|
||||
endDate: End date in format "YYYYMMDD"
|
||||
query: Search query
|
||||
Saves papers to a JSON file
|
||||
|
||||
JSON file is named "YYYMMDD-YYYYMMDD-query.json" (where YYYYMMDD is start date and YYYYMMDD is end date and query is search query)
|
||||
|
||||
## here is the API signature for paperprocessor:
|
||||
|
||||
### 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
|
||||
|
||||
You create config like this:
|
||||
config := paperprocessor.Config{
|
||||
APIEndpoint: "http://localhost:1234/v1/chat/completions",
|
||||
APIKey: apiKey,
|
||||
Model: "qwen2-7b-instruct",
|
||||
RequestDelay: 2 * time.Second, // 2 second delay between requests
|
||||
|
||||
|
||||
## Here is the usage for paperformatter:
|
||||
err := paperformatter.FormatPapers("input.json", "output.md")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
After all major changes, update git with an informative commit message.
|
2
go.sum
2
go.sum
|
@ -6,3 +6,5 @@ gitea.r8z.us/stwhite/paperprocessor v0.1.8 h1:pV810JZQFhuKcle4ix7stUz12LZNIgFCVW
|
|||
gitea.r8z.us/stwhite/paperprocessor v0.1.8/go.mod h1:0wHe7XjtQICFrPKbO53SVrUiVw9yi8GOGo9J7znpo+E=
|
||||
github.com/go-chi/chi/v5 v5.0.11 h1:BnpYbFZ3T3S1WMpD79r7R5ThWX40TaFB7L31Y8xqSwA=
|
||||
github.com/go-chi/chi/v5 v5.0.11/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
|
||||
github.com/go-chi/cors v1.2.1 h1:xEC8UT3Rlp2QuWNEr4Fs/c2EAGVKBwy/1vHx3bppil4=
|
||||
github.com/go-chi/cors v1.2.1/go.mod h1:sSbTewc+6wYHBBCW7ytsFSn836hqM7JxpglAy2Vzc58=
|
||||
|
|
Loading…
Reference in New Issue