0.1.74 • Published 4 months ago

gpt-researcher-ui v0.1.74

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

GPT Researcher UI

A React component library for integrating the GPT Researcher interface into your React applications. Take it for a test ride with the GPTR React Starter Template, or simply:

Website Documentation Discord Follow

PyPI version GitHub Release Open In Colab Docker Image Version

English | 中文 | 日本語 | 한국어

🔎 GPT Researcher

GPT Researcher is an open deep research agent designed for both web and local research on any given task.

The agent produces detailed, factual, and unbiased research reports with citations. GPT Researcher provides a full suite of customization options to create tailor made and domain specific research agents. Inspired by the recent Plan-and-Solve and RAG papers, GPT Researcher addresses misinformation, speed, determinism, and reliability by offering stable performance and increased speed through parallelized agent work.

Our mission is to empower individuals and organizations with accurate, unbiased, and factual information through AI.

Installation

npm install gpt-researcher-ui

Usage

import React from 'react';
import { GPTResearcher } from 'gpt-researcher-ui';

function App() {
  return (
    <div className="App">
      <GPTResearcher 
        apiUrl="http://localhost:8000"
        defaultPrompt="What is quantum computing?"
        onResultsChange={(results) => console.log('Research results:', results)}
      />
    </div>
  );
}

export default App;

Advanced Usage

import React, { useState } from 'react';
import { GPTResearcher } from 'gpt-researcher-ui';

function App() {
  const [results, setResults] = useState([]);

  const handleResultsChange = (newResults) => {
    setResults(newResults);
    console.log('Research progress:', newResults);
  };

  return (
    <div className="App">
      <h1>My Research Application</h1>
      
      <GPTResearcher 
        apiUrl="http://localhost:8000"
        apiKey="your-api-key-if-needed"
        defaultPrompt="Explain the impact of quantum computing on cryptography"
        onResultsChange={handleResultsChange}
      />
      
      {/* You can use the results state elsewhere in your app */}
      <div className="results-summary">
        {results.length > 0 && (
          <p>Research in progress: {results.length} items processed</p>
        )}
      </div>
    </div>
  );
}

export default App;
0.1.74

4 months ago

0.1.73

4 months ago

0.1.72

4 months ago

0.1.71

4 months ago

0.1.70

4 months ago

0.1.69

4 months ago

0.1.68

4 months ago

0.1.67

4 months ago

0.1.66

4 months ago

0.1.65

4 months ago

0.1.64

4 months ago

0.1.63

4 months ago

0.1.62

4 months ago

0.1.61

4 months ago

0.1.60

4 months ago

0.1.59

4 months ago

0.1.58

4 months ago

0.1.57

4 months ago

0.1.56

4 months ago

0.1.55

4 months ago

0.1.54

4 months ago

0.1.53

4 months ago

0.1.52

4 months ago

0.1.51

4 months ago

0.1.5

4 months ago

0.1.4

4 months ago

0.1.3

4 months ago

0.1.1

4 months ago

0.1.0

4 months ago