Skip to content

Latest commit

 

History

History
73 lines (47 loc) · 2.61 KB

File metadata and controls

73 lines (47 loc) · 2.61 KB

Reka Restaurant Finder

This demo showcases how to use the 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 use the advanced features.

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. From the reka-restaurant folder, execute dotnet run.

3. Modify 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.

  • allowed_domains or blocked_domains
  • response_format to control the output
  • max_uses to limit the number of searches

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[Restaurant 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 --> |restaurants, reasoning steps| A
Loading

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

sequenceDiagram
autonumber

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

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

Restaurant Finder ->> Reka Research  (api.reka.ai/v1) :mood, user location 
Reka Research (api.reka.ai/v1) ->> Restaurant Finder: restaurants, reasoning steps
  
Loading

References