Skip to content

response = index.query(prompt) AttributeError: 'function' object has no attribute 'query' #2

Description

@hildaoblivion

Hi Tim - love the logic behind this LLama Chatgpt linkage.
Ive created the project and code but when I run I get the following error

response = index.query(prompt)
AttributeError: 'function' object has no attribute 'query'

Its pointing to this part in the code

while True:
prompt = input("Type prompt...")
response = index.query(prompt)
print(response)

Im guessing either Ive missed an install in the environment on my side or Im calling the llama function wrong (but the code is just copied over with credentials and googdoc ID changed).

Any ideas who to get past it?

S

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions