Skip to content

Latest commit

 

History

History
92 lines (61 loc) · 3.02 KB

File metadata and controls

92 lines (61 loc) · 3.02 KB

Reka Tech Event Finder

This demo showcases how to use Reka Research to build intelligent apps that can search the web, structure responses, and support reasoning. It’s designed to help developers learn how to integrate and use Reka Research and its advanced features to discover relevant tech events.

screen capture

Requirement:

  • Have .NET 9 installed or Docker or CodeSpace

If you don't have .NET install on you computer use the devContainer with Docker or CodeSpace to create your workspace.

1. Get your API key

  1. Go to the Reka Platform dashboard
  2. Open the API Keys section on the left
  3. Create a new key and copy it to your environment
  4. Add the key into appsettings.json) (or appsettings.Development.json).

Voilà! Your are all set!

2. Run the demo

  1. Clone the repository:

    git clone https://github.com/reka-ai/api-examples-dotnet.git
  2. Navigate to the project folder:

    cd api-examples-dotnet/event-finder
  3. Run the project:

    dotnet run

3. Try it out

Once the application is running:

  • search for different topics (e.g., AI, .NET)
  • Try to change the location (e.g., New York, Berlin), or only keep the country
  • Only allow spefici domains (e.g., techcrunch.com)

For each research have a look to the reasoning steps and the final structured results.

4. Checkout the code

Open the project in your favorite IDE/ editor and you can look at Services/RekaResearchService.cs and change different parameters to see how it works.

Diagram

Here is a diagram to illustrate where the information is coming from and going to during for initiate a Research.

%%{ init : { "look": "handDrawn", "flowchart" : { "curve" : "linear" }}}%%

flowchart LR

        A[Events Finder] --> B[browser]
        B --> |lat, lng| A
        A --> |lat, lng| C[GetCityFromCoordinates https://nominatim.openstreetmap.org]
        C --> |city, area| A
   
        A -->|mood, user location| D[Reka Research https://api.reka.ai/v1]
        D --> |Eevents, reasoning steps| A
Loading

And here is a sequence diagram to illustrate the flow of information:

sequenceDiagram
autonumber

Events Finder ->> Browser : Get Coordinates
Browser->> Events Finder: lat, lng

Events Finder ->> nominatim.openstreetmap.org: Get City From Coordinates
nominatim.openstreetmap.org ->> Events Finder: city, area

Events Finder ->> Reka Research  (api.reka.ai/v1) :topic, user location, domains 
Reka Research (api.reka.ai/v1) ->> Events Finder: Events, reasoning steps
  
Loading

References