Comments (6)
Hi @coreation, is it possible to try to set CANOPY_DEBUG_INFO=true? We had added some more debug info to specific classes and decided to change the CE_DEBUG_INFO (CE meaning ContextEngine) to CANOPY_DEBUG_INFO to better reflect it is a project-wide config.
from canopy.
@coreation I see you got unblocked in your own.
Is there a missing documentation that could have made this clearer somehow?
from canopy.
@igiloh-pinecone no, unfortunately I'm not :) I'm running the code described in the ticket, but there's no context coming along, even though the chat response contains a properly formed answer. I'm now running copies of the code so that I can debug the entire RAG flow and see where it might go wrong
from canopy.
hey @izellevy thanks, I'll give that a try, but it seems that I've got issues just getting a proper retrieval going. I'm running both the canopy REST API and the code mentioned in the ticket to compare things side by side. The environment variables are the same, but the custom code, based on what the library documentation mentions isn't able to generate anything given the same question.
Using the REST API
Q: Is ChatGPT commandeering the mundane tasks that young employees have relied on to advance their careers?
A: Yes, ChatGPT is commandeering the mundane tasks that young employees have relied on to advance their careers. The generative-AI boom has led many companies to automate tasks such as spreadsheet building and generic copywriting in the name of becoming more efficient. These tasks are typically handled by entry-level workers, who were given them as a way to "earn their stripes" and develop in the workplace. However, with the rise of generative AI technology like ChatGPT, organizations are starting to automate these junior tasks, undermining the traditional path of advancement for young employees. This has raised concerns among members of Gen Z, with surveys indicating that 76% of them are worried about losing their jobs to ChatGPT.
Using the code mentioned in the ticket, based on the library.md file
Q: Is ChatGPT commandeering the mundane tasks that young employees have relied on to advance their careers?
A: There is no information in the provided context that directly addresses the impact of ChatGPT on young employees and their reliance on mundane tasks for career advancement. Therefore, I don't have enough information to answer your question.
I'm trying to wrap my head around what I'm doing wrong here...
from canopy.
@izellevy @igiloh-pinecone the debug flag works... but the larger issue is that using the following code, does not deliver any kind of response, whereas the canopy REST API does, given the exact same configuration.
If I look at the debug info, the documents that the KB retrieves are all...trash...just not relevant, while it's clear that by using the REST API endpoint on the same index does return information as it contains the sources that are in my index. Meaning, not something OpenAI can come up with.
Tokenizer.initialize()
pinecone_index = os.environ['PINECONE_INDEX']
pinecone_namespace = os.environ['PINECONE_NAMESPACE']
kb = KnowledgeBase(index_name=pinecone_index)
kb.connect()
# results = kb.query([Query(text="What is the outlook of the EV market?")])
# print(results)
context_engine = ContextEngine(kb)
llm = OpenAILLM()
chat_engine = ChatEngine(context_engine=context_engine, llm=llm)
response = chat_engine.chat(messages=messages, stream=False, namespace=pinecone_namespace)
print(response.debug_info) # This is empty
Is there anything I should watch out for here? My goal (not unimportant :) ) is to capture all the used sources so that I can fetch more meta-data of those sources to use in the UI that our end-users see.
from canopy.
@izellevy @igiloh-pinecone I'm going to make a dedicated issue out of the last comment as the original issue has been solved.
from canopy.
Related Issues (20)
- [Bug] CORS preflight headers - OPTIONS method not allowed
- [Feature] Support "GET" operations for the knowledge base HOT 2
- [Feature] Obtain F score directly from the chat engine HOT 1
- [Bug] Pydantic V2 is not compatible HOT 1
- [BUG] Sudden deterioration in chat bot answers after installing Canopy 0.7.0 HOT 11
- [Bug] Canopy cannot find the index created HOT 2
- [Bug] Upsert in Starter is Failing due to deletion HOT 4
- Please update tiktoken > 0.4 for canopy-sdk
- [Feature] Return context while calling the chat/completions
- [Bug] Initializing KnowledgeBase with AzureOpenAIEncoder encoder gives error: Exception: TypeError: record_encoder must be an instance of RecordEncoder, not <class 'pinecone_text.dense.openai_encoder.AzureOpenAIEncoder'> HOT 1
- [Bug] Context window is too large HOT 4
- [Bug] Knowbase seem to be disconnected, LLM is responding I don't know
- [Bug] Fail to start canopy server: Vector dimension 1536 does not match the dimension of the index 3072 HOT 2
- [Feature] Anthropic support HOT 1
- [Bug] Can't install Canopy SDK HOT 1
- [Notice!] gcp deployment document
- Package Conflict
- [Bug] Failed to create index HOT 2
- Persistent error message "Bad request: Your free plan does not support indexes in the us-west-2 region of aws" while trying to use "canopy new" 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 canopy.