Comments (6)
Its possible that you are using an older python. Can you try using python 3.10?
from megabots.
I'll have a look
from megabots.
Can you provide the code you used and got this error?
from megabots.
from qnabot.QnABot import QnABot
import os, sys
os.environ["OPENAI_API_KEY"] = "sk-xyz"
bot = QnABot(directory="./files")
bot.print_answer("what was the first roster of angers in comics?")
bot.print_answer("Who is Vision?")
saved as example.py
from megabots.
That was it. Also, strangely I had to modify the __init__.py
in the site-packages/qnabot
directory, from from QnABot import QnABot
to from .QnABot import QnABot
, i.e., add the period ".". Thanks for the effort! Does the input data need to be in a single text file? what happens when it exceeds, say, 8k tokens?
from megabots.
Good catch. I'll change the docs thing as well. It's still early dev and i've only spent 2 afternoons on it, sorry 😅
Thats a good question. the docs are divided when the FAISS index is created. You can see this here.
Im closing this issuea as this is fixed. Ill also add in the notes the supported python versions so that people don't have this problem. I'll also open the discussions at some point for questions.
Ping me if you need something else. Thank you 🤝
from megabots.
Related Issues (20)
- Add option for models to provide sources in QnA
- Create docs site
- Add pinecone vector database support HOT 1
- Add Chroma vector database support HOT 2
- Add agents support
- Add vector database support
- Expose all bot functions in API with proper swagger docs
- Create a Dockerfile example
- Create the release GH action
- Accept voice as an input using whisper HOT 2
- Validate and correct the outputs of LLMs using guardrails
- Semanticly cache LLM Queries and reduce Costs HOT 2
- Add memory to bot
- TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' HOT 8
- Do some research on HazyResearch/manifest
- Integrate with langchain-serve? HOT 5
- Error in langchain.embeddings load HOT 2
- Exposing API - Multiprocessing error HOT 1
- Add an autoGPT (or something similar) as a bot type
- Alternative APIs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from megabots.