Skip to content

LangChain, React, and OpenAI are used to provide users with a seamless and intelligent content analysis and question-answering experience. This extension enhances the browsing journey by allowing users to extract valuable insights from web pages and receive accurate answers to their questions based on the content displayed.

Notifications You must be signed in to change notification settings

JAYANTH-MOHAN/LangChain-Powered-React-Chrome-Extension-for-Intelligent-Content-Analysis-and-QA

Repository files navigation

LangChain-Powered-React-Chrome-Extension-for-Intelligent-Content-Analysis-and-QA

LangChain, React, and OpenAI are used to provide users with a seamless and intelligent content analysis and question-answering experience. This extension enhances the browsing journey by allowing users to extract valuable insights from web pages and receive accurate answers to their questions based on the content displayed.

The project leverages React, for dessigning user interfaces, resulting in a seamless and intuitive user experience. By simply clicking the Chrome extension, users initiate a content analysis process that delivers valuable insights. Additionally, the extension implements dynamic page reloading upon activation, ensuring the analysis is based on the most current and accurate content.

Utilizing the cutting-edge LangChain framework, the project taps into advanced natural language processing and analysis. LangChain's capabilities are harnessed to process on-screen content, extracting meaningful insights that lay the foundation for answering user queries. Integrated with OpenAI's potent language models, the project's core lies in generating precise and contextually relevant answers to user questions, driven by the content extracted from the web page. This fusion of LangChain and OpenAI empowers the extension to perform content analysis and question-answering seamlessly. The user interface, crafted using React, guarantees a responsive and visually engaging experience, ensuring smooth interaction with both LangChain and OpenAI components. The inclusion of memory vector stores and buffer memory optimizes data management throughout the analysis and Q&A process, contributing to the extension's overall efficiency.

Methods Used :

Webpages with Cheerio

Openai

Conversational Retrieval QA

Conversation buffer memory

Recursively split by character

Step-by-step guide :

  1. Clone the Repository: Start by cloning the project's repository onto your computer. You can do this by opening your preferred terminal and entering the command to clone the repository.
  2. Open Chrome Extensions: Launch your Google Chrome browser and click on the three dots at the top-right corner to open the menu. From there, hover over "Extensions" and click on "Manage Extensions."
  3. Enable Developer Mode: In the "Extensions" page, you'll find a toggle switch labeled "Developer mode." Make sure to turn this switch ON. This will enable you to load and test your own extensions.
  4. Load Unpacked Extension: Once developer mode is enabled, you'll see new options appear. Click on the "Load unpacked" button. A file dialog will pop up.
  5. Select Cloned Folder: Navigate to the location where you cloned the repository earlier. Select the entire folder associated with the extension.
  6. Confirm Selection: After selecting the folder, click "Open" in the file dialog. Chrome will load the extension from the chosen folder.
  7. Extension Ready: You should now see the LangChain-Powered React Chrome Extension listed among your installed extensions. You might also see its icon appear in the Chrome toolbar.
  8. Enjoy the Experience: The hard part's over! Simply click on the extension's icon in the toolbar. This will trigger the content analysis process. Sit back and let the extension do its thing. Once the page reloads and the analysis is done, feel free to ask questions and interact with the intelligent Q&A feature.

About

LangChain, React, and OpenAI are used to provide users with a seamless and intelligent content analysis and question-answering experience. This extension enhances the browsing journey by allowing users to extract valuable insights from web pages and receive accurate answers to their questions based on the content displayed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages