Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Windows - Errors relating to fitz.Document and fitz.NewFromReader seen when using knowledge as a remote tool. #45

Closed
@sangee2004

Description

@sangee2004

gptscript version v0.0.0-dev+6d3043d4

Setup - Windows VM on Azure- Windows 11 Pro ( 8GB RAM , 2 vCPUs, Standard D2s v3)

Steps to reproduce the problem:

  1. Execute the following script in windows VM using --workspace option. Workspace in my case has 1 pdf file.
Name: Mytest
Tools: github.com/gptscript-ai/knowledge
Context: github.com/gptscript-ai/context/workspace
Chat: true

You are a helpful assistant that can retrieve information and answer questions using your tools. When you start just introduce yourself as Oracle and wait for the user to prompt you.
You must use the knowledge tool to look up answers to your questions. Do NOT use the read tool. You may only answer questions with information you retrieve from the knowledge tool.
Even if you've seen the question before and have the answer in your context, don't reuse the answer - go back to the knowledge tool because it's possible the information it gave you previously is out of date.
When you give answers, always give a proper citation to the best of your abilities.
  1. Following error is seen after a chat is initiated
2024/07/22 23:39:43 run encounterd an error: exit status 1: # github.com/gptscript-ai/knowledge/pkg/datastore/documentloader
pkg\datastore\documentloader\pdf.go:47:18: undefined: fitz.Document
pkg\datastore\documentloader\pdf.go:54:19: undefined: fitz.NewFromReader
 with error output:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions